diff options
author | Markus Schanz | 2018-01-14 21:42:28 +0100 |
---|---|---|
committer | Markus Schanz | 2018-01-14 21:50:49 +0100 |
commit | f9702d7ed2ec587b895fd8a16daf558f2c5a1dd1 (patch) | |
tree | 97c391c539d76050952e068055c080a4540e4042 /50_bootbackup.hook | |
parent | 98f0cf1a4fafd827266009d78bf193b690942068 (diff) | |
download | aur-f9702d7ed2ec587b895fd8a16daf558f2c5a1dd1.tar.gz |
Hook trigger was generalized to trigger more accurately (used trigger defined in 90-linux.hook)
The hook names were changed for a better execution order
Diffstat (limited to '50_bootbackup.hook')
-rw-r--r-- | 50_bootbackup.hook | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/50_bootbackup.hook b/50_bootbackup.hook new file mode 100644 index 000000000000..906875dcb52c --- /dev/null +++ b/50_bootbackup.hook @@ -0,0 +1,20 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Operation = Remove +Target = systemd + +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Target = boot/vmlinuz-linux +Target = usr/lib/initcpio/* + +[Action] +Description = Backup boot partition... +When = PreTransaction +Depends = rsync +Exec = /usr/share/libalpm/scripts/backup-boot-partition pre +AbortOnFail |