diff options
author | Holger Levsen <holger@layer-acht.org> | 2013-05-21 16:05:58 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2013-05-21 16:05:58 +0200 |
commit | 16ab318a12831535f604d6c863f94e509d281c53 (patch) | |
tree | 177635ffde1c7bdb414bca881f2e786354d2bea6 | |
parent | 8cc038c930971ee99ba2cea0962810c44bb425a5 (diff) | |
download | jenkins.debian.net-16ab318a12831535f604d6c863f94e509d281c53.tar.xz |
g-i: edu combi server: detect ltsp arch
-rwxr-xr-x | bin/g-i-installation.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index f268ec6f..81c6597b 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -883,8 +883,17 @@ save_logs() { case $NAME in debian-edu_*combi-server) sudo guestmount -a $NAME.raw -m /dev/vg_system/opt -o nonempty --ro $SYSTEM_MNT/opt || ( echo "Warning: cannot mount /dev/vg_system/opt" ; figlet "fail" ) mkdir -p $RESULTS/log/opt - sudo cp -r $SYSTEM_MNT/opt/ltsp/amd64/var/log $RESULTS/log/opt/ - sudo chroot $SYSTEM_MNT/opt/ltsp/amd64 dpkg -l > $RESULTS/log/opt/dpkg-l || ( echo "Warning: cannot run dpkg inside the ltsp chroot." ; sudo ls -la $SYSTEM_MNT/opt/ltsp/amd64 ; figlet "fail" ) + if [ -d $SYSTEM_MNT/opt/ltsp/amd64 ] ; then + LTSPARCH="amd64" + elif [ -d $SYSTEM_MNT/opt/ltsp/i386 ] ; then + LTSPARCH="i386" + else + echo "Warning: no LTSP chroot found." + fi + if [ ! -z "$LTSPARCH" ] ; then + sudo cp -r $SYSTEM_MNT/opt/ltsp/$LTSPARCH/var/log $RESULTS/log/opt/ + sudo chroot $SYSTEM_MNT/opt/ltsp/$LTSPARCH dpkg -l > $RESULTS/log/opt/dpkg-l || ( echo "Warning: cannot run dpkg inside the ltsp chroot." ; sudo ls -la $SYSTEM_MNT/opt/ltsp/$LTSPARCH ; figlet "fail" ) + fi sudo umount -l $SYSTEM_MNT/opt || ( echo "Warning: cannot un-mount $SYSTEM_MNT/opt" ; figlet "fail" ) ;; *) ;; |