Fix error
This commit is contained in:
parent
93dc5b19c1
commit
57c263f016
1 changed files with 2 additions and 0 deletions
2
build.sh
2
build.sh
|
@ -423,6 +423,8 @@ rm -f "$MOUNT_DIR/usr/sbin/policy-rc.d"
|
|||
##
|
||||
# Unmount all file systems and minimize image file for distribution.
|
||||
#
|
||||
mount "$MOUNT_DIR/boot"
|
||||
mount "$MOUNT_DIR"
|
||||
ROOT_DEV=$(mount | grep "$MOUNT_DIR " | cut -f1 -d ' ')
|
||||
zerofree -v "$ROOT_DEV"
|
||||
unmount_image "$IMG_FILE"
|
||||
|
|
Reference in a new issue