bcachefs-tools icon indicating copy to clipboard operation
bcachefs-tools copied to clipboard

bcachefs usermode helper fails to mount multiple devices when used in the fstab

Open ticpu opened this issue 1 year ago • 4 comments

mount.bcachefs uses UUID= which is a reserved keyword. This means that systemd-fstab-generator replaces the UUID with a single device and doesn't call the usermode helper.

I'm not sure if this is a bug in systemd for not calling the helper or mount.bcachefs for using UUID=

ticpu avatar Nov 15 '23 15:11 ticpu

py1hon mention that ~~BCACHEFS_UUID=~~ OLD_BLKID_UUID= can be used in this situation to workaround UUID= being parsed by systemd. This still would need work to figure out a proper way to handle that with systemd.

ticpu avatar Nov 15 '23 15:11 ticpu

I just found this trying to figure out what OLD_BLKID_UUID is. Relevant? https://github.com/koverstreet/bcachefs-tools/commit/9ee211eacad51bce6858ca9b9755b6c9eb253f2e

andrewbaxter avatar Dec 09 '23 03:12 andrewbaxter

The name doesn't seem very intuitive of what it does, however I read it is used to bypass udev parsing of UUID, which is very useful in that context.

ticpu avatar Dec 10 '23 05:12 ticpu

It's supposed to be a stopgap measure, until we have time to dig into all the various userspace/systemd integration issues.

koverstreet avatar Dec 10 '23 18:12 koverstreet