Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/base/cleanup.50.cleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/cleanup.50.cleanup.sh')
-rw-r--r--modules/base/cleanup.50.cleanup.sh6
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