diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-12-22 18:53:27 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-12-22 18:53:27 +0100 |
commit | 820b0303eec0ec0d9d7233579bb03e2afcd345e1 (patch) | |
tree | b480d182fcf8a1d29d1b8879619e6ce1026f28b4 /bin | |
parent | 07791e7deefa2dc09d7b2872bc00e35bbbd3b7a9 (diff) | |
download | jenkins.debian.net-820b0303eec0ec0d9d7233579bb03e2afcd345e1.tar.xz |
add code for manual debugging
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/g-i-installation.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index d9d4e75c..9f98b826 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -387,6 +387,9 @@ save_logs() { SYSTEM_MNT=/media/$NAME sudo mkdir -p $SYSTEM_MNT sudo guestmount -o uid=$(id -u) -o gid=$(id -g) -a $NAME.raw -m /dev/debian/root --ro $SYSTEM_MNT || true + ls + ls $NAME.raw -la + ls $SYSTEM_MNT if [ -d $SYSTEM_MNT/var/log ] ; then # # copy logs @@ -399,6 +402,7 @@ save_logs() { chroot $SYSTEM_MNT dpkg -l > $RESULTS/dpkg-l else echo "Warning: cannot mount installed system to copy the logs..." + cp $NAME.raw $NAME.raw.bak fi sudo umount -l $SYSTEM_MNT || true } |