From 7620066c8a182a02fe2bd5fe1c01a6cc0859033d Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Fri, 8 Mar 2019 10:28:03 -0600 Subject: [PATCH] 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 --- image-builder/image_builder.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/image-builder/image_builder.sh b/image-builder/image_builder.sh index 42fd082361..0177830b50 100755 --- a/image-builder/image_builder.sh +++ b/image-builder/image_builder.sh @@ -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