Repository navigation
How to create a _local image layer_ to persist kernel parameters ? #5052
Replies: 1 comment
|
Hi! A "local image layer" just means building your own container image on top of the Dakota image you are running, with one small change, and then telling bootc to boot that image instead of the one from ghcr.io. Where the karg comes from On the NVIDIA image, cat /usr/lib/bootc/kargs.d/10-nvidia.tomlTwo things about the snippet printed by
kargs = ["your.karg=value"]Building and switching to the local image First check which image you are on (most likely sudo bootc statusCreate a folder with a mkdir -p ~/dakota-local && cd ~/dakota-local
cat > Containerfile <<'EOF'
FROM ghcr.io/projectbluefin/dakota-nvidia:stable
RUN sed -i '/initcall_blacklist=simpledrm_platform_driver_init/d' /usr/lib/bootc/kargs.d/10-nvidia.toml
EOFBuild it with sudo podman build --pull=newer -t localhost/dakota-nvidia-local:latest .
sudo podman run --rm localhost/dakota-nvidia-local:latest cat /usr/lib/bootc/kargs.d/10-nvidia.tomlIf the second command no longer shows the simpledrm line, switch to it and reboot: sudo bootc switch --transport containers-storage localhost/dakota-nvidia-local:latest
sudo systemctl rebootAfter the reboot, The catch: updates Your system now tracks the local image, so it will not get new Dakota builds on its own. To update, rebuild and switch again: cd ~/dakota-local
sudo podman build --pull=newer -t localhost/dakota-nvidia-local:latest .
sudo bootc switch --transport containers-storage localhost/dakota-nvidia-local:latestThe bootc docs have a section on booting local builds, including a systemd timer to automate the rebuild. To go back to the official image at any time: sudo bootc switch ghcr.io/projectbluefin/dakota-nvidia:stableA simpler option to try (untested) Instead of editing the entry in the systemd-boot menu, you can remove the karg from the Finally, since this probably affects every NVIDIA + LUKS user, it would be good to open an issue on projectbluefin/dakota ( Hope this helps! |
Uh oh!
There was an error while loading. Please reload this page.
I have a system with NVidia GPU.
When booting my system with default boot options, I do not see the LUKS prompt.
If I edit the boot command from systemd-boot menu and remove
initcall_blacklist=simpledrm_platform_driver_init, the LUKS prompt becomes visible.I would like to make this change permanent.
ujust kargsis reporting the followingI do not really get how should I create a local image layer
All reactions