summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2013-01-02 00:26:48 +0100
committerHolger Levsen <holger@layer-acht.org>2013-01-02 00:26:48 +0100
commit0cf7b6da0894d91ff19a638abfce5ddf36703ad1 (patch)
treea5f9ec697f3cd05e5563121035fa8834964fb7d3
parent67e85679e605a136aef234581751f96955396fc5 (diff)
downloadjenkins.debian.net-0cf7b6da0894d91ff19a638abfce5ddf36703ad1.tar.xz
fix mounting for edu workstation installs and be more verbose for all
-rwxr-xr-xbin/g-i-installation.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 8b14a872..30671635 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -570,11 +570,12 @@ save_logs() {
# FIXME: bugreport guestmount: -o uid doesnt work:
# "sudo guestmount -o uid=$(id -u) -o gid=$(id -g)" would be nicer, bt it doesnt work: as root, the files seem to belong to jenkins, but as jenkins they cannot be accessed
case $NAME in
- debian-edu_*) sudo guestmount -a $NAME.raw -m /dev/vg_system/root --ro $SYSTEM_MNT || true
- sudo guestmount -a $NAME.raw -m /dev/vg_system/var -o nonempty --ro $SYSTEM_MNT/var || true
- ;;
- *) sudo guestmount -a $NAME.raw -m /dev/debian/root --ro $SYSTEM_MNT || true
- ;;
+ debian-edu_*_workstation) sudo guestmount -a $NAME.raw -m /dev/vg_system/root --ro $SYSTEM_MNT || echo "Warning: cannot mount /dev/vg_system/root" ; figlet "fail"
+ debian-edu_*) sudo guestmount -a $NAME.raw -m /dev/vg_system/root --ro $SYSTEM_MNT || echo "Warning: cannot mount /dev/vg_system/root" ; figlet "fail"
+ sudo guestmount -a $NAME.raw -m /dev/vg_system/var -o nonempty --ro $SYSTEM_MNT/var || echo "Warning: cannot mount /dev/vg_system/var" ; figlet "fail"
+ ;;
+ *) sudo guestmount -a $NAME.raw -m /dev/debian/root --ro $SYSTEM_MNT || echo "Warning: cannot mount /dev/debian/root" ; figlet "fail"
+ ;;
esac
#
# copy logs (and continue if some logs cannot be copied)
@@ -592,11 +593,12 @@ save_logs() {
#
sync
case $NAME in
- debian-edu_*) sudo umount -l $SYSTEM_MNT/var || true
- ;;
- *) ;;
+ debian-edu_*_workstation) ;;
+ debian-edu_*) sudo umount -l $SYSTEM_MNT/var || echo "Warning: cannot un-mount $SYSTEM_MNT/var" ; figlet "fail"
+ ;;
+ *) ;;
esac
- sudo umount -l $SYSTEM_MNT || true
+ sudo umount -l $SYSTEM_MNT || echo "Warning: cannot un-mount $SYSTEM_MNT" ; figlet "fail"
}
trap cleanup_all INT TERM EXIT