From 5f11ed3bcc2a493a3b7248e954810e981120495c Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 29 Jan 2013 18:20:59 +0000 Subject: keep build.ks around and rename outputdir when done --- diff --git a/modules/base/cleanup.50.cleanup.sh b/modules/base/cleanup.50.cleanup.sh index 22a6fa3..de64045 100644 --- a/modules/base/cleanup.50.cleanup.sh +++ b/modules/base/cleanup.50.cleanup.sh @@ -2,11 +2,17 @@ # Licensed under the terms of the GNU GPL v2 or later; see COPYING for details. . $OOB__shlib + +image_number=$(image_name) +platform=$(read_config global target_platform) + umount $fsmount &>/dev/null || : umount $intermediatesdir/mnt-root &>/dev/null || : umount $intermediatesdir/mnt-boot &>/dev/null || : umount $intermediatesdir/mnt-squashfs &>/dev/null || : umount $intermediatesdir/mnt-iso &>/dev/null || : +cp $intermediatesdir/build.ks $outputdir/ +mv $outputdir $outputdir.$image_number-$platform # Sometimes, when image-creator is interrupted, it leaves mounts around. # clean them up here -- cgit v0.9.1