mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 18:47:03 +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 "Copying content from rootfs to root partition"
|
||||
cp -a "${ROOTFS}"/* ${MOUNT_DIR}
|
||||
sync
|
||||
OK "rootfs copied"
|
||||
|
||||
unmount
|
||||
|
Loading…
Reference in New Issue
Block a user