mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 01:16:59 +02:00
x11-drivers/nvidia-drivers: keep developer container image read-only
Since we no longer need to run emerge in the developer container, we can as well just treat the developer container more like a container image and use an ephemeral overlay.
This commit is contained in:
parent
d01ecae74c
commit
08b86ad7dd
@ -70,7 +70,7 @@ function extract_nvidia_installer() {
|
||||
function run_nspawn_container() {
|
||||
echo Spawn system-nspawn container to install the NVIDIA drivers
|
||||
|
||||
sudo systemd-nspawn --image="${FLATCAR_ROOT_WORKDIR}/${FLATCAR_DEVELOPER_CONTAINER}" --bind="${FLATCAR_ROOT_WORKDIR}/${NVIDIA_WORKDIR}":/nvidia --bind=/usr/share/oem/bin:/app/bin/ /app/bin/install-nvidia "$NVIDIA_DRIVER_BASENAME"
|
||||
sudo systemd-nspawn --read-only --volatile=overlay --image="${FLATCAR_ROOT_WORKDIR}/${FLATCAR_DEVELOPER_CONTAINER}" --bind="${FLATCAR_ROOT_WORKDIR}/${NVIDIA_WORKDIR}":/nvidia --bind=/usr/share/oem/bin:/app/bin/ /app/bin/install-nvidia "$NVIDIA_DRIVER_BASENAME"
|
||||
}
|
||||
|
||||
function copy_nvidia_build_artifacts() {
|
||||
|
Loading…
Reference in New Issue
Block a user