mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
gpu: Update creation permissions
We need to make sure the device files are created correctly in the rootfs otherwise kata-agent will apply permission 0o000. Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
parent
7a704453b6
commit
2f28be3ad9
@ -270,7 +270,8 @@ chisseled_init() {
|
|||||||
tar xvf "${BUILD_DIR}"/kata-static-busybox.tar.xz -C .
|
tar xvf "${BUILD_DIR}"/kata-static-busybox.tar.xz -C .
|
||||||
|
|
||||||
mkdir -p dev etc proc run/cdi sys tmp usr var lib/modules lib/firmware \
|
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
|
usr/share/nvidia lib/"${machine_arch}"-linux-gnu lib64 \
|
||||||
|
usr/bin etc/modprobe.d
|
||||||
|
|
||||||
ln -sf ../run var/run
|
ln -sf ../run var/run
|
||||||
|
|
||||||
@ -286,6 +287,9 @@ chisseled_init() {
|
|||||||
|
|
||||||
cp -a "${stage_one}"/lib/firmware/nvidia lib/firmware/.
|
cp -a "${stage_one}"/lib/firmware/nvidia lib/firmware/.
|
||||||
cp -a "${stage_one}"/sbin/ldconfig.real sbin/ldconfig
|
cp -a "${stage_one}"/sbin/ldconfig.real sbin/ldconfig
|
||||||
|
|
||||||
|
local conf_file="etc/modprobe.d/0000-nvidia.conf"
|
||||||
|
echo 'options nvidia NVreg_DeviceFileMode=0660' > "${conf_file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
compress_rootfs() {
|
compress_rootfs() {
|
||||||
|
Loading…
Reference in New Issue
Block a user