summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/g-i-installation.sh16
-rw-r--r--d-i-preseed-cfgs/sid-daily-lxde-preseed.cfg (renamed from d-i-preseed-cfgs/sid-daily-lxde-preseed.config)0
2 files changed, 10 insertions, 6 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 9d662f66..441700a7 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -77,8 +77,8 @@ cleanup_all() {
# rename .bak files back to .ppm
if find . -name "*.ppm.bak" ; then
for i in *.ppm.bak ; do
- echo mv -v $i ${i%.bak.ppm}.ppm
- mv -v $i ${i%.bak.ppm}.ppm
+ echo "mv -v $i $(echo $i | sed -s 's#.ppm.bak#.ppm#')"
+ mv -v $i $(echo $i | sed -s 's#.ppm.bak#.ppm#')
done
fi
set -x
@@ -162,10 +162,14 @@ monitor_installation() {
#
# break if qemu-system has finished
#
- vncsnapshot -quiet -allowblank $DISPLAY snapshot_$(printf "%06d" $NR).jpg 2>/dev/null \
- || ( echo "could not take vncsnapshot, no qemu running on $DISPLAY" ; touch $RESULTS/qemu_quit ; break )
- convert snapshot_$(printf "%06d" $NR).jpg snapshot_$(printf "%06d" $NR).ppm
- rm snapshot_$(printf "%06d" $NR).jpg
+ vncsnapshot -quiet -allowblank $DISPLAY snapshot_$(printf "%06d" $NR).jpg 2>/dev/null || touch $RESULTS/qemu_quit
+ if [ ! -f touch $RESULTS/qemu_quit ] ; then
+ convert snapshot_$(printf "%06d" $NR).jpg snapshot_$(printf "%06d" $NR).ppm
+ rm snapshot_$(printf "%06d" $NR).jpg
+ else
+ echo "could not take vncsnapshot, no qemu running on $DISPLAY"
+ break
+ fi
# give signal we are still running
if [ $(($NR % 14)) -eq 0 ] ; then
date
diff --git a/d-i-preseed-cfgs/sid-daily-lxde-preseed.config b/d-i-preseed-cfgs/sid-daily-lxde-preseed.cfg
index d7f1f400..d7f1f400 100644
--- a/d-i-preseed-cfgs/sid-daily-lxde-preseed.config
+++ b/d-i-preseed-cfgs/sid-daily-lxde-preseed.cfg