Move common code to build script
This commit is contained in:
parent
6a97e2ba59
commit
b5325f4f48
2 changed files with 1 additions and 2 deletions
1
build.sh
1
build.sh
|
@ -73,6 +73,7 @@ main() {
|
||||||
|
|
||||||
mkdir -p "$WORK_DIR"
|
mkdir -p "$WORK_DIR"
|
||||||
mkdir -p "$DEPLOY_DIR"
|
mkdir -p "$DEPLOY_DIR"
|
||||||
|
mkdir -p "$ROOTFS_DIR"
|
||||||
|
|
||||||
pushd "$STAGE_DIR" > /dev/null
|
pushd "$STAGE_DIR" > /dev/null
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ unmount_image "$IMG_FILE"
|
||||||
|
|
||||||
rm -f "$IMG_FILE"
|
rm -f "$IMG_FILE"
|
||||||
|
|
||||||
mkdir -p "$ROOTFS_DIR"
|
|
||||||
|
|
||||||
BOOT_SIZE=$(du --apparent-size -s "$ROOTFS_DIR/boot" --block-size=1 | cut -f 1)
|
BOOT_SIZE=$(du --apparent-size -s "$ROOTFS_DIR/boot" --block-size=1 | cut -f 1)
|
||||||
TOTAL_SIZE=$(du --apparent-size -s "$ROOTFS_DIR" --exclude var/cache/apt/archives --block-size=1 | cut -f 1)
|
TOTAL_SIZE=$(du --apparent-size -s "$ROOTFS_DIR" --exclude var/cache/apt/archives --block-size=1 | cut -f 1)
|
||||||
|
|
||||||
|
|
Reference in a new issue