1
0
Fork 0

Move common code to build script

This commit is contained in:
Braiden Vasco 2017-07-02 18:37:45 +00:00
parent 6a97e2ba59
commit b5325f4f48
2 changed files with 1 additions and 2 deletions

View file

@ -73,6 +73,7 @@ main() {
mkdir -p "$WORK_DIR"
mkdir -p "$DEPLOY_DIR"
mkdir -p "$ROOTFS_DIR"
pushd "$STAGE_DIR" > /dev/null

View file

@ -4,8 +4,6 @@ unmount_image "$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)
TOTAL_SIZE=$(du --apparent-size -s "$ROOTFS_DIR" --exclude var/cache/apt/archives --block-size=1 | cut -f 1)