diff options
author | Yurii Kolesnykov | 2019-08-31 23:05:27 +0300 |
---|---|---|
committer | Yurii Kolesnykov | 2019-08-31 23:05:27 +0300 |
commit | 28784b574eedf89d71ef43eb1e2f1c961d3e2064 (patch) | |
tree | ee0db80b35546f6723d7b2b2eeee602858863ecf /linux.preset | |
parent | fc9469dd7216d7928b841014c1b539b33588faa9 (diff) | |
download | aur-28784b574eedf89d71ef43eb1e2f1c961d3e2064.tar.gz |
5.4.857604.9c9284f9cee9
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
Diffstat (limited to 'linux.preset')
-rw-r--r-- | linux.preset | 33 |
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 +} |