-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail if mountpoint path is forbidden by FCOS #240
Comments
On FCOS you can't create mountpoints directly in |
Oh thanks a lot! That works. Given this seems to be a limitation of FCOS, do you think a pre-check in Butane could be implemented so this error is catched before when transpiling to an Ignition file? |
Actually, yeah, that's a good idea. |
How about extending this to a more generalized path validation, i.e. not just limited to mount points? For example, Ignition will bail if a storage config for |
One thing with this is that Butane is also being used as input for CoreOS layering and there we do want to support changing things in |
coreos/fedora-coreos-config#1879 aims to provide a way to create paths in the root directory. We might want to provide Butane sugar for that, but it doesn't completely obviate this issue, since there will still be forbidden paths (like |
Bug
Operating System Version
fedora-coreos-34.20210503.1.1-live.x86_64
- current next streamIgnition Version
2.9.0
Environment
bare-metal
Expected Behavior
Mounting succeeds.
Actual Behavior
The last line in the log of
journalctl -t ignition
, even after printing the whole Ignition config is:BTW yes the
}
at the start is really there, as it is the end of the Ignition config output it does there and in this case it seems to merge with that message…This results in:
Doing an ls on
/sysroot/mnt
, I can see this is somewhat correct as it's a symbolic link:As you can see, it links to
var/mnt
(without a leading slash! –also wonder whether that's intended).In any case, in my emergency dracut shell I at least also cannot see any/var/mnt
directory…Edit: Ah of course it's intended by rpm-ostree's file layout. However, in the link's target, i.e.
/sysroot/var
there is also only alib
folder, no other folder, i.e. nomnt
it actually expects.Reproduction Steps
BTW the
filesystems
-> systemd service for mounting the file is filesystem is correctly generated.Other Information
I continue my challenge to mount an existing LUKS drive from coreos/ignition#1210 (originally here)
FYI: When I then just reboot, it cannot even mount
/root
anymore, which is basically just configured as in the doc here (I did not include that part in the config above): It cannot find/dev/disk/by-label/root
.The text was updated successfully, but these errors were encountered: