Reorder code
This commit is contained in:
parent
a1d5f03017
commit
9776a1abe9
1 changed files with 2 additions and 3 deletions
5
build.sh
5
build.sh
|
@ -63,13 +63,12 @@ main() {
|
||||||
mkdir -p "$WORK_DIR"
|
mkdir -p "$WORK_DIR"
|
||||||
|
|
||||||
STAGE_DIR="$BASE_DIR/stage0"
|
STAGE_DIR="$BASE_DIR/stage0"
|
||||||
|
|
||||||
pushd "$STAGE_DIR" > /dev/null
|
|
||||||
|
|
||||||
STAGE=$(basename "$STAGE_DIR")
|
STAGE=$(basename "$STAGE_DIR")
|
||||||
STAGE_WORK_DIR="$WORK_DIR/$STAGE"
|
STAGE_WORK_DIR="$WORK_DIR/$STAGE"
|
||||||
ROOTFS_DIR="$STAGE_WORK_DIR/rootfs"
|
ROOTFS_DIR="$STAGE_WORK_DIR/rootfs"
|
||||||
|
|
||||||
|
pushd "$STAGE_DIR" > /dev/null
|
||||||
|
|
||||||
unmount "$STAGE_WORK_DIR"
|
unmount "$STAGE_WORK_DIR"
|
||||||
|
|
||||||
for SUB_STAGE_DIR in $STAGE_DIR/*; do
|
for SUB_STAGE_DIR in $STAGE_DIR/*; do
|
||||||
|
|
Reference in a new issue