From 9794a6fb7c9c478444d791875d7930995f33820e Mon Sep 17 00:00:00 2001 From: Gerhard Brauer Date: Sun, 26 Jul 2009 10:57:46 +0200 Subject: Use the archisolabel= command line option to mount the archiso device. If the archisolabel= option is specified on the kernel commandline, a device /dev/archiso will be created and will be used to boot the live system. Patch from brain0 Signed-off-by: Gerhard Brauer Signed-off-by: Aaron Griffin --- archiso/hooks/archiso-early | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archiso/hooks/archiso-early') diff --git a/archiso/hooks/archiso-early b/archiso/hooks/archiso-early index 884c4be..d57b73b 100644 --- a/archiso/hooks/archiso-early +++ b/archiso/hooks/archiso-early @@ -1,8 +1,8 @@ # vim: set ft=sh: run_hook () { - # Set our usbdelay time. Default: 0 - cd / - /bin/mkdir -p etc/modprobe.d/ - echo "options usb-storage delay_use=${usbdelay:-0}" > /etc/modprobe.d/usb-delay + if [ -n "${archisolabel}" ]; then + echo "ACTION==\"add|change\", SUBSYSTEM==\"block\", IMPORT{program}=\"vol_id --export \$tempnode\"" > /lib/udev/rules.d/00-archiso-device.rules + echo "ENV{ID_FS_LABEL_ENC}==\"${archisolabel}\", SYMLINK+=\"archiso\"" >> /lib/udev/rules.d/00-archiso-device.rules + fi } -- cgit v1.2.3-70-g09d2