[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#351523: initramfs-tools: Add support for filesystem labels and uuid's

Package: initramfs-tools
Version: 0.51
Severity: wishlist
Tags: patch

By adding /sbin/vol_id to the generated initramfs image, udev is able to create the persistent device nodes under /dev/disk such as /dev/disk/by-label/rootpartition which means that the kernel can be booted with an argument such as root=/dev/disk/by-label/rootpart.

This also means that the item "fstab label and UUID" in the wiki InitrdReplacementOptions page can be marked as working (it is marked as such today but I think that is due to a misunderstanding).


--- initramfs-tools-bak/hooks/udev	2006-01-31 12:50:50.000000000 +0100
+++ initramfs-tools/hooks/udev	2006-02-05 13:42:47.000000000 +0100
@@ -22,6 +22,9 @@
 copy_exec /sbin/udevd /sbin/
 copy_exec /sbin/udevsynthesize /sbin/
+# This allows udev to create /dev/disk/by-label and friends
+copy_exec /sbin/vol_id /sbin/
 mkdir $DESTDIR/lib/udev/
 cp /lib/udev/hotplug.functions $DESTDIR/lib/udev/
 copy_exec /lib/udev/vio.agent /lib/udev/

Reply to: