From 86834e3ff74e49892bedece28927fd0b95a299b8 Mon Sep 17 00:00:00 2001 From: Urs Schulz Date: Wed, 2 May 2018 16:09:35 +0200 Subject: [PATCH] mkplatformfs.sh: fix -k option Closes: #64 [via git-merge-pr] --- mkplatformfs.sh.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mkplatformfs.sh.in b/mkplatformfs.sh.in index 553b068..dfd860c 100644 --- a/mkplatformfs.sh.in +++ b/mkplatformfs.sh.in @@ -210,6 +210,14 @@ cleanup_chroot # only for it to be out of date, we remove it now. rm -rf "$ROOTFS/var/cache/*" 2>/dev/null +# Now we can run the POST_CMD script. This user-supplied script gets the +# $ROOTFS as a parameter. +if [ -n "$POST_CMD" ]; then + info_msg "Running user supllied command: $POST_CMD" + run_cmd $POST_CMD $ROOTFS +fi + + # Compress the tarball or just print out the path? if [ "$COMPRESSION" = "y" ]; then # Finally we can compress the tarball, the name will include the