summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-11-09 01:18:44 +0100
committerJonas Smedegaard <dr@jones.dk>2017-11-09 01:42:22 +0100
commit09908f023f1b8602891d7f7d09a79acd04eec66a (patch)
tree96a14e28cb44d6b7bb22074d153c32c5a197281d
parent8b6a8d84a8d0700ff5dfd632b9d92089e82328e2 (diff)
Remove /multistrap-configure.sh from rootfs after use.
-rwxr-xr-xskel/multistrap-hooks/completion_50_configscript.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/skel/multistrap-hooks/completion_50_configscript.sh b/skel/multistrap-hooks/completion_50_configscript.sh
index 683d898..088190d 100755
--- a/skel/multistrap-hooks/completion_50_configscript.sh
+++ b/skel/multistrap-hooks/completion_50_configscript.sh
@@ -47,6 +47,7 @@ if [ -n "${FAKEROOTKEY:-}" ] && [ "${FAKECHROOT:-}" != "true" ]; then
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/lib/$multiarch/libfakeroot" \
${qemu:+QEMU_LD_PREFIX="$fs"} \
proot -r "$fs" -b /proc -b /sys -b /dev ${qemu:+-q "$qemu"} -w / /multistrap-configure.sh
+ rm -f "$fs/multistrap-configure.sh"
else
sudo=sudo
if [ "$(whoami)" = "root" ]; then
@@ -61,6 +62,7 @@ else
$sudo umount "$fs/proc"
$sudo umount "$fs/sys"
$sudo umount "$fs/dev"
+ $sudo rm -f "$fs/multistrap-configure.sh"
fi
rm -f "$fs/$RANDFILE"