diff sources/functions.sh @ 1817:92d542aa6ceb draft

Teach system-image.sh to handle its own dependencies, rebuilding kernel and repackaging cpio/squashfs as appropraite, and _not_ doing so when unneeded.
author Rob Landley <rob@landley.net>
date Sun, 22 Nov 2015 14:54:16 -0600
parents fb05f99ffcce
children d3b5e8a635ea
line wrap: on
line diff
--- a/sources/functions.sh	Sat Nov 21 16:44:39 2015 -0600
+++ b/sources/functions.sh	Sun Nov 22 14:54:16 2015 -0600
@@ -73,7 +73,7 @@
 
   STAGE_DIR="$BUILD/${STAGE_NAME}-${ARCH_NAME}"
 
-  blank_tempdir "$STAGE_DIR"
+  [ -z "$KEEP_STAGEDIR" ] && blank_tempdir "$STAGE_DIR"
   NO_CLEANUP=${NO_CLEANUP/temp//} blank_tempdir "$WORK"
 
   export PATH="$(cc_path "$ARCH")$PATH"