1 # arg 1: the new package version
2 # arg 2: the old package version
5 KERNEL_VERSION=3.2.0-3-BEDE
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}
14 # add compat symlinks for the initramfs images
15 ln -sf initramfs-linux${KERNEL_NAME}.img boot/kernel26${KERNEL_NAME}.img
16 ln -sf initramfs-linux${KERNEL_NAME}-fallback.img \
17 boot/kernel26${KERNEL_NAME}-fallback.img
21 pacman -Q grub &>/dev/null
23 pacman -Q grub2 &>/dev/null
25 pacman -Q lilo &>/dev/null
28 if [ $haslilo -eq 0 ]; then
30 if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
31 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
33 echo ">>> You appear to be using the LILO bootloader. You should run"
34 echo ">>> 'lilo' before rebooting."
39 if grep "^[^#]*[[:space:]]/boot" etc/fstab 2>&1 >/dev/null; then
40 if ! grep "[[:space:]]/boot" etc/mtab 2>&1 >/dev/null; then
41 echo "WARNING: /boot appears to be a seperate partition but is not mounted"
42 echo " This is most likely not what you want. Please mount your /boot"
43 echo " partition and reinstall the kernel unless you are sure this is OK"
47 # updating module dependencies
48 echo ">>> Updating module dependencies. Please wait ..."
49 depmod ${KERNEL_VERSION}
50 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
51 mkinitcpio -p linux${KERNEL_NAME}
55 # also remove the compat symlinks
56 rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}.img
57 rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}-fallback.img