summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-22 13:54:58 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-22 13:54:58 +0100
commite2c68491d351e4b419b6837e496c465423ce29bf (patch)
tree20c8117383bd1d4d76be09a9c8392c6fcf521de3 /bin
parent0859491a55b64951c42581aa0f312383cd284fbe (diff)
downloadjenkins.debian.net-e2c68491d351e4b419b6837e496c465423ce29bf.tar.xz
also capture dpkg -l output
Diffstat (limited to 'bin')
-rwxr-xr-xbin/g-i-installation.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 866e02f4..6904e67f 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -355,7 +355,7 @@ monitor_system() {
save_logs() {
#
- # get logs from the installed system
+ # get logs and other files from the installed system
#
# remove set +e once the code has proven its good
set +e
@@ -363,8 +363,15 @@ save_logs() {
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
if [ -d $SYSTEM_MNT/var/log ] ; then
+ #
+ # copy logs
+ #
mkdir -p $RESULTS/log
cp -r $SYSTEM_MNT/var/log/installer $RESULTS/log/
+ #
+ # get list of installed packages
+ #
+ chroot $SYSTEM_MNT dpkg -l > $RESULTS/dpkg-l
else
echo "Warning: cannot mount installed system to copy the logs..."
fi