2 KERNEL_VERSION=3.2.1-3-ck
5 # updating module dependencies
6 echo ">>> Updating module dependencies. Please wait ..."
7 depmod ${KERNEL_VERSION}
8 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
9 mkinitcpio -p linux${KERNEL_NAME}
11 # compat symlinks for the official kernels only
12 if [ -z "${KERNEL_NAME}" -o "${KERNEL_NAME}" = "-lts" ]; then
13 loaders="$(find /boot -name syslinux.cfg -or -name extlinux.conf -or -name grub.cfg -or -name menu.lst)"
14 [ -f /etc/lilo.conf ] && loaders="$loaders /etc/lilo.conf"
15 if [ -n "${loaders}" ] && grep -q -e vmlinuz26 -e kernel26.img -e kernel26-fallback.img $loaders; then
16 # add compat symlinks for the initramfs images
17 ln -sf initramfs-linux${KERNEL_NAME}.img boot/kernel26${KERNEL_NAME}.img
18 ln -sf initramfs-linux${KERNEL_NAME}-fallback.img \
19 boot/kernel26${KERNEL_NAME}-fallback.img
20 ln -sf vmlinuz-linux${KERNEL_NAME} /boot/vmlinuz26${KERNEL_NAME}
26 pacman -Q grub &>/dev/null
28 pacman -Q grub2 &>/dev/null
30 pacman -Q lilo &>/dev/null
33 if [ $haslilo -eq 0 ]; then
35 if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
36 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
38 echo ">>> You appear to be using the LILO bootloader. You should run"
39 echo ">>> 'lilo' before rebooting."
44 if grep "^[^#]*[[:space:]]/boot" etc/fstab 2>&1 >/dev/null; then
45 if ! grep "[[:space:]]/boot" etc/mtab 2>&1 >/dev/null; then
46 echo "WARNING: /boot appears to be a seperate partition but is not mounted."
47 echo " You probably just broke your system. Congratulations."
51 # updating module dependencies
52 echo ">>> Updating module dependencies. Please wait ..."
53 depmod ${KERNEL_VERSION}
54 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
55 mkinitcpio -p linux${KERNEL_NAME}
59 # also remove the compat symlinks
60 rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}.img
61 rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}-fallback.img