-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
bcachefs: unlock-bcachefs-*.service fails with device = "UUID=..."
#317901
Comments
A workaround here: #316695 (comment) Apparently this is a systemd bug: #316695 (comment) (Upstream issue: systemd/systemd#28989) CC: @lheckemann I feel like a lot of issues like #316396 these keep popping up due to slow moving systemd and incompatibility with our current mounting methods. |
That workaround does work, because it switches from I think I should have been more clear with exactly what bug I'm describing. I'll update the description |
device = "UUID=..."
device = "UUID=..."
I may have gone a little overboard and created this thing to solve this: https://github.com/ElvishJerricco/bcachefs-fstab-generator TL;DR: It's a systemd generator that parses |
When you specify the device with
UUID=...
, theunlock-bcachefs-
service attempts to wait on a device calledUUID=...
. This doesn't work, because systemd does not translate this into a device path; it just expects a literal file namedUUID=...
. This has been fixed specifically for theWhat=
directive in mount units, but this fix does not apply to device unit names.The result is that you end up waiting on a device that will never exist to run a service that you might not even need if you're not using encryption (which is normally fine because of the
ExecCondition
).We've really gotta rethink everything about how we're mounting bcachefs file systems, especially given the problems with multi-device ones.
The text was updated successfully, but these errors were encountered: