b7ca4bf281
To make compatible with disablehooks= param. Since "hook_archiso-early" is not a valid variable name. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
9 lines
347 B
Bash
9 lines
347 B
Bash
# 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
|
|
}
|