mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 23:37:45 +00:00
Merge pull request #131 from stefanha/initrd-builder-idempotency
initrd-builder: make initrd_builder.sh idempotent
This commit is contained in:
commit
ae1db5650c
@ -73,7 +73,7 @@ OK "Agent is installed"
|
||||
[ "$(id -u)" -eq 0 ] || die "$0: must be run as root"
|
||||
|
||||
# initramfs expects /init
|
||||
mv -f ${init} "${ROOTFS}/init"
|
||||
ln -sf /sbin/init "${ROOTFS}/init"
|
||||
|
||||
info "Creating ${IMAGE_DIR}/${IMAGE_NAME} based on rootfs at ${ROOTFS}"
|
||||
( cd "${ROOTFS}" && find . | cpio -H newc -o | gzip -9 ) > "${IMAGE_DIR}"/"${IMAGE_NAME}"
|
||||
|
Loading…
Reference in New Issue
Block a user