mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-10 07:05:51 +00:00
fixup! build: split NVIDIA rootfs into base-nvidia image + gpu addon
This commit is contained in:
@@ -264,9 +264,14 @@ chisseled_init() {
|
||||
echo "nvidia: chisseling init"
|
||||
tar --zstd -xvf "${BUILD_DIR}"/kata-static-busybox.tar.zst -C .
|
||||
|
||||
# Create bin/ and sbin/ explicitly rather than relying on busybox's
|
||||
# `make install` to emit them: busybox only creates a directory when it has
|
||||
# an applet living there, and once the nvidia busybox dropped modprobe (its
|
||||
# only /sbin applet, now provided by kmod) it stopped emitting sbin/, which
|
||||
# broke the `sbin/init` symlink below.
|
||||
mkdir -p dev etc proc run/cdi sys tmp usr var lib/modules lib/firmware \
|
||||
usr/share/nvidia lib/"${machine_arch}"-linux-gnu lib64 \
|
||||
usr/bin etc/modprobe.d etc/ssl/certs
|
||||
bin sbin usr/bin etc/modprobe.d etc/ssl/certs
|
||||
|
||||
ln -sf ../run var/run
|
||||
ln -sf ../run var/log
|
||||
|
||||
Reference in New Issue
Block a user