As you know, udev upstream is about to remove udevstart. For the purposes of installing Grub, however, the following shell scriptlet works just fine instead of udevstart:

for DEVICE in /sys/block/*/dev /sys/block/*/*/dev ; do
    IFS=: read MAJOR MINOR <$DEVICE
    mknod /dev/`basename ${DEVICE%/dev}` b $MAJOR $MINOR
done

It doesn't fully work for the purpose of installing patched LILO on a LVM2 volume, but the plain old udevstart didn't either, so let's ignore this problem. Anyway, it is easily solved by "rm /dev/dm-* && vgmknodes". Also it doesn't create character devices at all, but neither Grub nor Lilo needs them.

I propose to put this scriptlet into the udev_update book.

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to