summaryrefslogtreecommitdiff
path: root/archiso/hooks
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-03-16 00:36:54 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-03-16 01:53:40 -0300
commitfc9a01e713df022c5b51222d95ed635d1b6f8f30 (patch)
tree850a44e80edbbd7b53b6a0173c5f328d8973869f /archiso/hooks
parent56750f37ed8b70653be9558e843fac7b90107c95 (diff)
Remove archiso_early hook, use /dev/disk/by-label/${archisolabel} instead.
Takes the advantage of already symlinks created on /dev/disk/by-label/ by 60-persistent-storage.rules add by udev hook. Tested on: * Real machine as CD-ROM and USB key drive. * KVM as CD-ROM and DISK (for both modes, in combination with IDE and SCSI) * VirtualBox as IDE CD-ROM. IMPORTANT note: Since isohybrid is a hack, if more partitions are added to USB key drive, filesystem on these partitions MUST have LABEL, otherwise USB key will fail to boot. Anyway there is an option archisodevice=, to force and specific device where live-media reside. (Maybe isohybrid will change the hack method used in a future) More info at: http://mailman.archlinux.org/pipermail/arch-releng/2010-March/000890.html http://mailman.archlinux.org/pipermail/arch-releng/2010-March/000913.html Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/hooks')
-rw-r--r--archiso/hooks/archiso2
-rw-r--r--archiso/hooks/archiso_early8
2 files changed, 1 insertions, 9 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index 592003b..e1ad81a 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -61,7 +61,7 @@ run_hook () {
fi
if [ "x${archisodevice}" = "x" ]; then
- archisodevice="/dev/archiso"
+ archisodevice="/dev/disk/by-label/${archisolabel}"
fi
# set mount handler for archiso
diff --git a/archiso/hooks/archiso_early b/archiso/hooks/archiso_early
deleted file mode 100644
index 465e105..0000000
--- a/archiso/hooks/archiso_early
+++ /dev/null
@@ -1,8 +0,0 @@
-# vim: set ft=sh:
-run_hook ()
-{
- if [ -n "${archisolabel}" ]; then
- echo "ACTION==\"add|change\", SUBSYSTEM==\"block\", IMPORT{program}=\"/sbin/blkid -o udev -p \$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
-}