Update 9990-misc-helpers.sh to support latest udev version [Closes: issue1278]
authorMichael Prokop <mika@grml.org>
Sat, 28 Sep 2013 09:00:58 +0000 (11:00 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 28 Sep 2013 09:21:16 +0000 (11:21 +0200)
commit79dceecf978c589cb7d2bdab92fdb1a2664b93c8
tree4b1c5673e7a8d5b148f166ab344591197d01f841
parent7d773fad4a9f232eea97a5968519fee1f626d25d
Update 9990-misc-helpers.sh to support latest udev version [Closes: issue1278]

When booting the ISO in hard-disk mode udev's
'udevadm test-builtin' emits this error message:

| calling: test-builtin
| error reading /lib/udev/hwdb.bin: No such file or directory
| load module index
| unload module index

and fails to boot because using udevadm test-builtin in the
is_nice_device function no longer recognizes proper DEVICES.

Including the /lib/udev/hwdb.bin file in the initramfs doesn't
help either as udevadm test-builtin was a debug interface and
never supposed to be used public.

This patch addresses the issue by using udevadm info and checking
if the DEVTYPE of the device is 'disk'. This should work with the
majority of DEVICES.

Closes: https://github.com/grml/live-boot-grml/pull/3

Thanks: Ulrich Dangel <mru@spamt.net> for the initial patch
Thanks: Michael Biebl <biebl@debian.org> for helping in resolve this issue
debian/patches/43_fix_udev_usage_in_is_nice_device.patch [new file with mode: 0644]
debian/patches/series