check-boot-hook/95-check-boot.hook

14 lines
293 B
Plaintext

[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