mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-20 00:48:04 +00:00
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:
parent
dc5bc07825
commit
7620066c8a
@ -267,6 +267,7 @@ create_rootfs_disk
|
|||||||
info "rootfs size ${ROOTFS_SIZE} MB"
|
info "rootfs size ${ROOTFS_SIZE} MB"
|
||||||
info "Copying content from rootfs to root partition"
|
info "Copying content from rootfs to root partition"
|
||||||
cp -a "${ROOTFS}"/* ${MOUNT_DIR}
|
cp -a "${ROOTFS}"/* ${MOUNT_DIR}
|
||||||
|
sync
|
||||||
OK "rootfs copied"
|
OK "rootfs copied"
|
||||||
|
|
||||||
unmount
|
unmount
|
||||||
|
Loading…
Reference in New Issue
Block a user