-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
nixos: systemd doesn't respect fileSystems.<name>.depends #217179
Comments
Do we even need the |
@nikstur Well, currently |
Describe the bug
systemd doesn't respect the
depends
option for file systems. Usually this is ok because systemd will mount file systems in the correct topological ordering. Thedepends
option is useful because it allows you to express dependencies on e.g. the file systems that anoverlay
FS's lower/upper/work directories exist on.Steps To Reproduce
This test should hang forever. Instead, it exits cleanly.
Expected behavior
The
block-foo
service never exits, so/foo
is never mounted, and therefore/bar
should never be mounted. So the test should hang.Additional context
This is also a problem for systemd stage 1, but it's worse because we also have to account for the
/sysroot
prefix. We can fix this by addingx-systemd.requires-mounts-for=
options for every dependency, and prefixing/sysroot
for the systemd stage 1 file systems.The text was updated successfully, but these errors were encountered: