1 # arg 1: the new package version
2 # arg 2: the old package version
4 KERNEL_NAME=rsbac26-git
5 #KERNEL_VERSION=2.6.35-rsbac-ARCH+
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 ${KERNEL_NAME}
24 pacman -Q grub &>/dev/null
26 pacman -Q grub2 &>/dev/null
28 pacman -Q lilo &>/dev/null
31 if [ $haslilo -eq 0 ]; then
33 if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
34 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
36 echo ">>> You appear to be using the LILO bootloader. You should run"
37 echo ">>> 'lilo' before rebooting."
42 if grep "^[^#]*/boot" /etc/fstab 2>&1 >/dev/null; then
43 if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
44 echo "WARNING: /boot appears to be a seperate partition but is not mounted"
45 echo " This is most likely not what you want. Please mount your /boot"
46 echo " partition and reinstall the kernel unless you are sure this is OK"
50 # updating module dependencies
51 echo ">>> Updating module dependencies. Please wait ..."
52 depmod $KERNEL_VERSION
53 echo ">>> MKINITCPIO SETUP"
54 echo ">>> ----------------"
56 echo ">>> If you use LVM2, Encrypted root or software RAID,"
57 echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
58 echo ">>> More information about mkinitcpio setup can be found here:"
59 echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
61 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
63 /sbin/mkinitcpio -p ${KERNEL_NAME}
67 rm -f /boot/kernel26-${KERNEL_NAME}.img
68 rm -f /boot/kernel26-${KERNEL_NAME}-fallback.img