1 # arg 1: the new package version
2 # arg 2: the old package version
5 KERNEL_VERSION=3.2.0-416.1-bfs
8 # updating module dependencies
9 echo ">>> Updating module dependencies. Please wait ..."
10 depmod ${KERNEL_VERSION}
11 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
12 mkinitcpio -p linux${KERNEL_NAME}
16 pacman -Q grub &>/dev/null
18 pacman -Q grub2 &>/dev/null
20 pacman -Q lilo &>/dev/null
23 if [ $haslilo -eq 0 ]; then
25 if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
26 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
28 echo ">>> You appear to be using the LILO bootloader. You should run"
29 echo ">>> 'lilo' before rebooting."
34 if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then
35 echo "WARNING: /boot appears to be a separate partition but is not mounted."
36 echo " You probably just broke your system. Congratulations."
39 # updating module dependencies
40 echo ">>> Updating module dependencies. Please wait ..."
41 depmod ${KERNEL_VERSION}
42 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
43 mkinitcpio -p linux${KERNEL_NAME}
47 rm -f boot/initramfs-linux${KERNEL_NAME}.img
48 rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img