Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/hooks/archiso-early
diff options
context:
space:
mode:
authorGerhard Brauer <gerbra@archlinux.de>2009-07-26 10:57:46 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-27 11:03:38 -0700
commit9794a6fb7c9c478444d791875d7930995f33820e (patch)
tree31250d07949cc7e04f0e5c39c0529f6221ce47ff /archiso/hooks/archiso-early
parent73dc6b4b1b0c5a60ee22137e316e01090591a778 (diff)
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 <thomas@archlinux.org> Signed-off-by: Gerhard Brauer <gerbra@archlinux.de> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso/hooks/archiso-early')
-rw-r--r--archiso/hooks/archiso-early8
1 files changed, 4 insertions, 4 deletions
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
}