summaryrefslogtreecommitdiff
path: root/archiso/hooks/archiso-early
blob: edd554bf2102bd8d299e713cb11987ff909f6780 (plain)
1
2
3
4
5
6
7
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
}