[Trigger] Operation = Install Operation = Upgrade Operation = Remove Type = File Target = boot/* Target = usr/lib/initcpio/* Target = usr/lib/modules/* [Action] When = PreTransaction Exec = /bin/sh -c 'findmnt /boot &>/dev/null || ( printf "error: /boot not mounted\n"; exit 1 )' AbortOnFail