Open viric opened 11 years ago
From the first look it seems to me that the udev "magic" is connected to multi-device btrfs filesystems.
My btrfs /home partition mounts fine (it's in stage2, isn't it?), but I only have systemd-200 and it's one-device only.
On Tue, Apr 23, 2013 at 12:50:42PM -0700, Vladimír Čunát wrote:
From the first look it seems to me that the udev "magic" is connected to multi-device btrfs filesystems.
Yes, to me too, but as something doesn't work for me, I'm a bit lost.
My btrfs /home partition mounts fine (it's in stage2, isn't it?), but I only have systemd-200.
I tried that in 199, 200 and 201, to no difference. Is your /home partition multi-device, and over LVM?
No, just regular one-device (I added this info straight after posting the previous comment, but you only read the e-mail).
Ok, I think it's definitely a multidevice trouble :)
Is this still an issue?
First, this only affects btrfs fs to be mounted by systemd, thus, stage 2.
As current nixos master, only one block device can be told to be waited for.
In a usual btrfs approach, when all the block devices are ready, "btrfs dev scan" has to be run with the btrfs module loaded, and it will settle down the multidevice information.
I tried to get nixos supporting multiple devices in fileSystems, and having "btrfs dev scan" run as a udev rule, but this doesn't work: https://github.com/viric/nixos/compare/master...systemd_btrfs
Currently, my mount point (mnt-hd.mount) fails to mount this way:
I'm using this config, with my branch:
As an additional comment, systemd udev seems to have some magic about btrfs that I don't understand: http://lists.freedesktop.org/archives/systemd-commits/2012-September/002503.html