index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | archiso/hooks/archiso_early | 8 |
diff --git a/archiso/hooks/archiso_early b/archiso/hooks/archiso_early new file mode 100644 index 0000000..edd554b --- /dev/null +++ b/archiso/hooks/archiso_early @@ -0,0 +1,8 @@ +# vim: set ft=sh: +run_hook () +{ + if [ -n "${archisolabel}" ]; then + echo "ACTION==\"add|change\", SUBSYSTEM==\"block\", IMPORT{program}=\"/sbin/blkid -o udev \$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 +} |