Skip to content

Commit

Permalink
Merge branch 'premaster'
Browse files Browse the repository at this point in the history
  • Loading branch information
mfthomps committed Jul 26, 2024
2 parents afd5257 + 71626f6 commit 2c8a54f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ The installation script and the update-designer.sh script set environment variab
so you may want to logout/login, or start a new bash shell before using Labtainers the
first time.

July 26, 2024
- Modify capinout to not use grantpt clib function, which now seems to crash when run from a container.

July 22, 2024
- Add a base container for Ubuntu22 and changes to framework to support that.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN /usr/bin/apt-source.sh
ADD $labdir/$imagedir/sys_tar/sys.tar /
ADD $labdir/sys_$lab.tar.gz /
#
RUN deluser --remove-home ubuntu`
RUN deluser --remove-home ubuntu
RUN useradd -ms /bin/bash $user_name
RUN echo "$user_name:$password" | chpasswd
RUN adduser $user_name sudo
Expand Down
31 changes: 31 additions & 0 deletions testsets/bin/test-ubuntu24.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
#
# Start the Ubuntu 24 smoke test with the results of the latest mkall
#
isrunning=$(./vbox-client.py "list runningvms")
echo "isrunning $isrunning"
ok=$(echo $isrunning | grep -c "LabtainerVM24-smoketest")
if [[ $ok != 0 ]]; then
echo "ERROR: Is already running: $isrunning"
exit 1
fi
vmdir="/media/sf_SEED/test_vms/ubuntu24smoke/"
if [[ "$1" != "-n" ]]; then
mkdir -p $vmdir
cp testvm-do.sh $vmdir/dothis.sh
chmod a+x $vmdir/dothis.sh
if [[ "$1" != "-t" ]]; then
branch=$(git rev-parse --abbrev-ref HEAD)
sed -i "s/REPLACE_THIS/$branch/" $vmdir/dothis.sh
else
sed -i "s/REPLACE_THIS/premaster/" $vmdir/dothis.sh
fi
else
echo "Leaving the dothis.sh file as it was."
fi
tlist="labtainer.tar labtainer-master.tar labtainer-tests.tar"
for t in $tlist; do
cp /media/sf_SEED/$t $vmdir
done

./vbox-client.py "startvm LabtainerVM24-smoketest"
12 changes: 6 additions & 6 deletions tool-src/capinout/mypty2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ int getMaster()
return -1;
}

rc = grantpt(fdm);
if (rc != 0)
{
fprintf(stderr, "Error %d on grantpt()\n", errno);
return -1;
}
//rc = grantpt(fdm);
//if (rc != 0)
//{
// fprintf(stderr, "Error %d on grantpt()\n", errno);
// return -1;
//}

rc = unlockpt(fdm);
if (rc != 0)
Expand Down

0 comments on commit 2c8a54f

Please sign in to comment.