summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 19:38:25 +0200
committerGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 19:38:25 +0200
commitace8c6de2b01d7d7b23c5d6db88daeac80df9448 (patch)
treec38084f836bd49c62d4e59ddd5ef14a18762c5af
parent9347ed6bee0fdbb03847238ca60a21ce7a27c40e (diff)
downloadmkinitcpio-ace8c6de2b01d7d7b23c5d6db88daeac80df9448.tar.gz
mkinitcpio-ace8c6de2b01d7d7b23c5d6db88daeac80df9448.tar.xz
Add a preset to be used by the pacman hook to create presets on the fly
This will be used by the pacman hook to create presets on the fly for new kernels being installed based on pkgbase.
-rw-r--r--mkinitcpio.d/hook.preset14
1 files changed, 14 insertions, 0 deletions
diff --git a/mkinitcpio.d/hook.preset b/mkinitcpio.d/hook.preset
new file mode 100644
index 0000000..66709a8
--- /dev/null
+++ b/mkinitcpio.d/hook.preset
@@ -0,0 +1,14 @@
+# mkinitcpio preset file for the '%PKGBASE%' package
+
+ALL_config="/etc/mkinitcpio.conf"
+ALL_kver="/boot/vmlinuz-%PKGBASE%"
+
+PRESETS=('default' 'fallback')
+
+#default_config="/etc/mkinitcpio.conf"
+default_image="/boot/initramfs-%PKGBASE%.img"
+#default_options=""
+
+#fallback_config="/etc/mkinitcpio.conf"
+fallback_image="/boot/initramfs-%PKGBASE%-fallback.img"
+fallback_options="-S autodetect"