Selaa lähdekoodia

mkplatformfs.sh: fix -k option

Closes: #64 [via git-merge-pr]
Urs Schulz 7 vuotta sitten
vanhempi
sitoutus
86834e3ff7
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      mkplatformfs.sh.in

+ 8 - 0
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