From fa80b88dbf84a69047c198290b1f7b52547ad1a4 Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Fri, 25 Sep 2020 14:48:55 +0200 Subject: [PATCH] Add pacman hooks --- hooks/01_snap-pac-uki_pre.hook | 12 ++++++++++++ hooks/zz_snap-pac-uki_post.hook | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 hooks/01_snap-pac-uki_pre.hook create mode 100644 hooks/zz_snap-pac-uki_post.hook diff --git a/hooks/01_snap-pac-uki_pre.hook b/hooks/01_snap-pac-uki_pre.hook new file mode 100644 index 0000000..852b059 --- /dev/null +++ b/hooks/01_snap-pac-uki_pre.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Upgrade +Operation = Install +Operation = Remove +Type = Package +Target = * + +[Action] +Description = Performing snapper pre snapshot UKI creation... +When = PreTransaction +Exec = /usr/share/libalpm/scripts/snap-pac-uki_create.fish +AbortOnFail diff --git a/hooks/zz_snap-pac-uki_post.hook b/hooks/zz_snap-pac-uki_post.hook new file mode 100644 index 0000000..c0ca293 --- /dev/null +++ b/hooks/zz_snap-pac-uki_post.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Upgrade +Operation = Install +Operation = Remove +Type = Package +Target = * + +[Action] +Description = Performing snapper post snapshot UKI creation... +When = PostTransaction +Exec = /usr/share/libalpm/scripts/snap-pac-uki_create.fish