1 # arg 1: the new package version
2 # arg 2: the old package version
5 KERNEL_VERSION=2.6.30-rc7-eee901
8 # updating module dependencies
9 echo ">>> Updating module dependencies. Please wait ..."
10 depmod $KERNEL_VERSION
11 # generate init ramdisks
12 echo ">>> MKINITCPIO SETUP"
13 echo ">>> ----------------"
14 echo ">>> If you use LVM2, Encrypted root or software RAID,"
15 echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
16 echo ">>> More information about mkinitcpio setup can be found here:"
17 echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
19 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
20 /sbin/mkinitcpio -p kernel26${KERNEL_NAME}
24 pacman -Q grub &>/dev/null
26 pacman -Q lilo &>/dev/null
29 if [ $haslilo -eq 0 ]; then
31 if [ $hasgrub -eq 0 ]; then
32 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
34 echo ">>> You appear to be using the LILO bootloader. You should run"
35 echo ">>> 'lilo' before rebooting."
40 if grep "/boot" /etc/fstab 2>&1 >/dev/null; then
41 if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
42 echo "WARNING: /boot appears to be a seperate partition but is not mounted"
43 echo " This is most likely not what you want. Please mount your /boot"
44 echo " partition and reinstall the kernel unless you are sure this is OK"
48 # updating module dependencies
49 echo ">>> Updating module dependencies. Please wait ..."
50 depmod $KERNEL_VERSION
51 echo ">>> MKINITCPIO SETUP"
52 echo ">>> ----------------"
53 echo ">>> If you use LVM2, Encrypted root or software RAID,"
54 echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
55 echo ">>> More information about mkinitcpio setup can be found here:"
56 echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
58 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
59 # generate new init ramdisk
60 /sbin/mkinitcpio -p kernel26${KERNEL_NAME}