diff options
author | Jerry <jvonau@shaw.ca> | 2013-01-29 18:20:59 (GMT) |
---|---|---|
committer | Jerry <jvonau@shaw.ca> | 2013-01-29 18:20:59 (GMT) |
commit | 5f11ed3bcc2a493a3b7248e954810e981120495c (patch) | |
tree | 1a999419f9f8b8a1c6fe0439b512b3cd4aeb89f5 | |
parent | 1981fec30b436efce5b9222b15f5c7bc5af382d0 (diff) |
keep build.ks around and rename outputdir when done
-rw-r--r-- | modules/base/cleanup.50.cleanup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |