mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 00:02:01 +00:00
gpu: rootfs/initrd build init
Initramfs expects /init, create symlink only if ${ROOTFS}/init does not exist Init may be provided by other packages, e.g. systemd or GPU initrd/rootfs Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
parent
7aeaf2502a
commit
3029e6e849
@ -72,8 +72,9 @@ OK "init is installed"
|
||||
use AGENT_BIN env variable to change the expected agent binary name"
|
||||
OK "Agent is installed"
|
||||
|
||||
# initramfs expects /init
|
||||
sudo ln -sf /sbin/init "${ROOTFS}/init"
|
||||
# initramfs expects /init, create symlink only if ${ROOTFS}/init does not exist
|
||||
# Init may be provided by other packages, e.g. systemd or GPU initrd/rootfs
|
||||
[ -x "${ROOTFS}/init" ] || [ -L "${ROOTFS}/init" ] || sudo ln -sf /sbin/init "${ROOTFS}/init"
|
||||
|
||||
info "Creating ${IMAGE_DIR}/${IMAGE_NAME} based on rootfs at ${ROOTFS}"
|
||||
( cd "${ROOTFS}" && sudo find . | sudo cpio -H newc -o | gzip -9 ) > "${IMAGE_DIR}"/"${IMAGE_NAME}"
|
||||
|
Loading…
Reference in New Issue
Block a user