diff options
Diffstat (limited to 'archiso/hooks')
-rw-r--r-- | archiso/hooks/archiso | 2 | ||||
-rw-r--r-- | archiso/hooks/archiso_early | 8 |
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 -} |