summaryrefslogtreecommitdiff
path: root/archiso/hooks/archiso-early
blob: d57b73bede539791beedd711ef51fcb82f7d8072 (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}=\"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
}