Duncan <1i5t5.duncan@xxxxxxx> schrieb:
> While in theory btrfs has the device= mount option, and the kernel has
> rootflags= to tell it what mount options to use, at least last I checked
> a few kernel cycles ago (I'd say last summer, so 3-5 kernel cycles ago),
> for some reason rootflags=device= doesn't appear to work correctly. My
> theory is that the kernel commandline parser breaks at the second/last =
> instead of the first, so instead of seeing settings for the rootflags
> parameter, it sees settings for the rootflags=device parameter, which of
> course makes no sense to the kernel and is ignored. But that's just my
> best theory.
Gentoo here, too. And I tried to fiddle around with the exact same issue
some kernel versions back and didn't get it to work, so I did go with dracut
which works pretty well for me - combined with grub2, multi-device detection
works pretty well tho you sometimes need rootdelay={1,2,3} to wait up to
three seconds for btrfs figure out its setup. Looks like btrfs devices are
assembled with a delay by the kernel and at the point you try to mount one
of the compound devices, if done too early, the kernel code cannot yet find
all the other devices of the set. Maybe "rootwait" would also do tho I
didn't tried that yet (it probably won't as the root device is initrd
initially). It may be a side-effect of the kernel doing async SCSI device
detection. It may be worth trying to turn that option of.
But about your theory: I don't think the cmdline parser works incorrect,
becauce rootflags=subvol=something works. It's probably just a flaw that
btrfs device composition comes up later and the kernel tries to early to
mount root. "rootwait" probably won't help here, too. But "rootdelay" may
help that case tho I myself don't have the ambitions to experiment with it.
My dracut initrd setup works fine and has some benefits like early debug
shell to investigate problems without resorting to rescue systems or
bootable USB sticks.
--
Replies to list only preferred.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html