Bug#670146: udev: /lib/udev/write_dev_root_rule does not work with btrfs

2012-07-29 Thread Marco d'Itri
On Apr 23, Paride Legovini wrote: > Anyway I have another (simpler) idea, but I'm not sure about how solid > it would be, please let me know what you think. If we can't find a valid > block device using udevadm, as in the case of btrfs, we try to use the > root= parameter read from /proc/cmdline.

Bug#670146: udev: /lib/udev/write_dev_root_rule does not work with btrfs

2012-05-16 Thread Paride Legovini
Dear Marco, here is the patched version of the script. Basically if we can't find the root device with udev, we try to find it by parsing /proc/cmdline. If that is not a valid block device the script exists, if it is that device is used for the /dev/root symlink. Ciao, Paride #!/bin/sh -e RUNDI

Bug#670146: udev: /lib/udev/write_dev_root_rule does not work with btrfs

2012-04-23 Thread Paride Legovini
On Mon, Apr 23, 2012 at 03:13:05PM +0200, Marco d'Itri wrote: > On Apr 23, Marco d'Itri wrote: > > > > The script /usr/share/initramfs-tools/hooks/cryptroot already contains > > > a function that tries to find the device mounted as / by parsing the > > > fstab. It also works with the UUID= or LAB

Bug#670146: udev: /lib/udev/write_dev_root_rule does not work with btrfs

2012-04-23 Thread Marco d'Itri
On Apr 23, Marco d'Itri wrote: > > The script /usr/share/initramfs-tools/hooks/cryptroot already contains > > a function that tries to find the device mounted as / by parsing the > > fstab. It also works with the UUID= or LABEL= syntax. That function could > > be used as a fallback mechanicm in w

Bug#670146: udev: /lib/udev/write_dev_root_rule does not work with btrfs

2012-04-23 Thread Marco d'Itri
On Apr 23, Paride Legovini wrote: > The script /usr/share/initramfs-tools/hooks/cryptroot already contains > a function that tries to find the device mounted as / by parsing the > fstab. It also works with the UUID= or LABEL= syntax. That function could > be used as a fallback mechanicm in write_

Bug#670146: udev: /lib/udev/write_dev_root_rule does not work with btrfs

2012-04-23 Thread Paride Legovini
Package: udev Version: 175-3.1 Severity: normal Dear Marco, the udev script /lib/udev/write_dev_root_rule does not work with btrfs filesystems. I know you are aware of this, as I see the lines # btrfs filesystems have bogus major/minor numbers [ "$ROOT_MAJOR" != 0 ] || exit 0 but I think this s