summarylogtreecommitdiffstats
path: root/dracut-sb.install
diff options
context:
space:
mode:
authortleydxdy2021-08-20 10:34:50 -0400
committertleydxdy2021-08-20 10:34:50 -0400
commitb95b70d73b58a96a9ac9171e9baca844cd50bf2c (patch)
tree42682b27f0c77973951eb5c0910a5aab451647b8 /dracut-sb.install
parent9f9c5103f03ab34c0dd9941df2b9df58b1bec982 (diff)
downloadaur-b95b70d73b58a96a9ac9171e9baca844cd50bf2c.tar.gz
add more hooks
Diffstat (limited to 'dracut-sb.install')
-rw-r--r--dracut-sb.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/dracut-sb.install b/dracut-sb.install
new file mode 100644
index 000000000000..f4fa328b73b0
--- /dev/null
+++ b/dracut-sb.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo "Edit the config at /etc/dracut-sb/efi-key.conf to contain the correct info,"
+ echo "plug in the drive with the keys, then Press Enter"
+ read
+ /usr/local/share/libalpm/scripts/efi-key
+ echo "" | /usr/local/share/libalpm/scripts/dracut-install
+}
+
+post_upgrade() {
+ /usr/local/share/libalpm/scripts/efi-key
+ echo "" | /usr/local/share/libalpm/scripts/dracut-install
+}
+
+post_remove() {
+ echo "" | /usr/local/share/libalpm/scripts/dracut-install
+}