linux.install 853 B

123456789101112131415161718192021222324252627
  1. post_install () {
  2. # updating module dependencies
  3. echo ">>> Updating module dependencies. Please wait ..."
  4. depmod %KERNVER%
  5. }
  6. post_upgrade() {
  7. if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then
  8. echo "WARNING: /boot appears to be a separate partition but is not mounted."
  9. fi
  10. # updating module dependencies
  11. echo ">>> Updating module dependencies. Please wait ..."
  12. depmod %KERNVER%
  13. if [ $(vercmp $2 3.13) -lt 0 ]; then
  14. echo ">>> WARNING: AT keyboard support is no longer built into the kernel."
  15. echo ">>> In order to use your keyboard during early init, you MUST"
  16. echo ">>> include the 'keyboard' hook in your mkinitcpio.conf."
  17. fi
  18. }
  19. post_remove() {
  20. # also remove the compat symlinks
  21. rm -f boot/initramfs-%PKGBASE%.img
  22. rm -f boot/initramfs-%PKGBASE%-fallback.img
  23. }