diff --git a/build.sh b/build.sh index e2be155..d6e6978 100755 --- a/build.sh +++ b/build.sh @@ -63,13 +63,12 @@ main() { mkdir -p "$WORK_DIR" STAGE_DIR="$BASE_DIR/stage0" - - pushd "$STAGE_DIR" > /dev/null - STAGE=$(basename "$STAGE_DIR") STAGE_WORK_DIR="$WORK_DIR/$STAGE" ROOTFS_DIR="$STAGE_WORK_DIR/rootfs" + pushd "$STAGE_DIR" > /dev/null + unmount "$STAGE_WORK_DIR" for SUB_STAGE_DIR in $STAGE_DIR/*; do