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 should be worked aroud, perhaps by parsing the fstab.
The problem with btrfs is that it is a multi-device filesystem, so
a single consistent device can't always be reported. Also, btrfs
filesystems (and subvolumes) aren't block devices themselves, so
we can't go this way either.

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_dev_root_rule.

Ciao,
Paride

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.3.2-falena (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages udev depends on:
ii  debconf [debconf-2.0]  1.5.42
ii  libc6                  2.13-30
ii  libselinux1            2.1.9-4
ii  libudev0               175-3.1
ii  lsb-base               4.1+Debian1
ii  util-linux             2.20.1-4

Versions of packages udev recommends:
ii  pciutils  1:3.1.9-2
ii  usbutils  1:005-2

udev suggests no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to