1
0
Fork 0

Fix error

This commit is contained in:
Braiden Vasco 2017-07-04 22:50:09 +00:00
parent 57c263f016
commit 96d96c37ac

View file

@ -423,8 +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"
umount "$MOUNT_DIR/boot"
umount "$MOUNT_DIR"
ROOT_DEV=$(mount | grep "$MOUNT_DIR " | cut -f1 -d ' ')
zerofree -v "$ROOT_DEV"
unmount_image "$IMG_FILE"