-
Notifications
You must be signed in to change notification settings - Fork 385
Description
mkosi commit the issue has been seen with
4ed5a8b , 25.3 stable
Used host distribution
Fedora 42
Used target distribution
Fedora 42
Linux kernel version used
6.14.9-300.fc42.x86_64
CPU architectures issue was seen on
x86_64, aarch64
Unexpected behaviour you saw
This is a minimal example version of this discussion which makes me believe there is a bug in mkosi boot.
Reproduction steps
(On Fedora 42)
Create an empty directory with just the file mkosi.nspawn with contents
[Files]
Bind=/runtime/test:/testRun mkosi boot -a --package=filesystem,systemd,util-linux (to build a minimal bootable nspawn container with autologin) and finally mkosi boot.
Expected result
Based on systemd.nspawn documentation and the mkosi NSpawnSettings documentation, I see a booted container with /test mounted from my host into the container.
Actual result
I see a booted container, but no /test directory is mounted or even present in the container.
Notes
The configuration in mkosi.nspawn is not ignored entirely, which can be confirmed by e.g. adding the ReadOnly=true directive to the [Files] section. It just seems to be ignoring certain other directives in the nspawn configuration.
Used mkosi config
This reproduces on any image that boots into a shell with mkosi boot. A minimal example can be generated by e.g. mkosi boot -a --package=filesystem,systemd,util-linux on Fedora.
mkosi output
N/A