image-builder: sync rootfs data after copying it into the image

Rootfs data must be sync'd after copying it into the image to avoid
data corruption

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2019-03-08 10:28:03 -06:00
parent dc5bc07825
commit 7620066c8a

View File

@ -267,6 +267,7 @@ create_rootfs_disk
info "rootfs size ${ROOTFS_SIZE} MB"
info "Copying content from rootfs to root partition"
cp -a "${ROOTFS}"/* ${MOUNT_DIR}
sync
OK "rootfs copied"
unmount