summarylogtreecommitdiffstats
path: root/linux.preset
diff options
context:
space:
mode:
authorYurii Kolesnykov2019-09-01 22:29:47 +0300
committerYurii Kolesnykov2019-09-01 22:29:47 +0300
commitce4f331796ebb2618fba6bcc2ffb7a52d95236ac (patch)
tree33cce0e0ab8b576d8d22e5eedda2ac483997099f /linux.preset
parentf472a258011df9c126f1fd9d55c111c5d2be7320 (diff)
downloadaur-ce4f331796ebb2618fba6bcc2ffb7a52d95236ac.tar.gz
5.3.843232.7a83645ac0cc
Diffstat (limited to 'linux.preset')
-rw-r--r--linux.preset33
1 files changed, 23 insertions, 10 deletions
diff --git a/linux.preset b/linux.preset
index 66709a8c1537..046277584140 100644
--- a/linux.preset
+++ b/linux.preset
@@ -1,14 +1,27 @@
-# mkinitcpio preset file for the '%PKGBASE%' package
+post_install () {
+ # updating module dependencies
+ echo ">>> Updating module dependencies. Please wait ..."
+ depmod %KERNVER%
+}
-ALL_config="/etc/mkinitcpio.conf"
-ALL_kver="/boot/vmlinuz-%PKGBASE%"
+post_upgrade() {
+ if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then
+ echo "WARNING: /boot appears to be a separate partition but is not mounted."
+ fi
-PRESETS=('default' 'fallback')
+ # updating module dependencies
+ echo ">>> Updating module dependencies. Please wait ..."
+ depmod %KERNVER%
-#default_config="/etc/mkinitcpio.conf"
-default_image="/boot/initramfs-%PKGBASE%.img"
-#default_options=""
+ if [ $(vercmp $2 3.13) -lt 0 ]; then
+ echo ">>> WARNING: AT keyboard support is no longer built into the kernel."
+ echo ">>> In order to use your keyboard during early init, you MUST"
+ echo ">>> include the 'keyboard' hook in your mkinitcpio.conf."
+ fi
+}
-#fallback_config="/etc/mkinitcpio.conf"
-fallback_image="/boot/initramfs-%PKGBASE%-fallback.img"
-fallback_options="-S autodetect"
+post_remove() {
+ # also remove the compat symlinks
+ rm -f boot/initramfs-%PKGBASE%.img
+ rm -f boot/initramfs-%PKGBASE%-fallback.img
+}