diff -Naur a/kernel26.install b/kernel26.install --- a/kernel26.install 2009-03-26 10:11:20.270428210 +0100 +++ b/kernel26.install 2009-03-26 10:44:53.895615771 +0100 @@ -18,6 +18,25 @@ echo "" echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." /sbin/mkinitcpio -p kernel26${KERNEL_NAME} + # warning about the kernel release change + if [ "${KERNEL_NAME}" != "" ]; then + echo "" + echo ">>> KERNEL RELEASE has changed (the \`uname -r\` output)" + echo ">>> ----------------------------------------------" + echo ">>> It is now '${KERNEL_VERSION}'" + echo ">>> Please change your bootloader config files:" + echo ">>> Grub: /boot/grub/menu.lst | Lilo: /etc/lilo.conf" + echo "--------------------------------------------------" + echo "| - vmlinuz26 to vmlinuz26${KERNEL_NAME} |" + echo "| - kernel26.img to kernel26${KERNEL_NAME}.img |" + echo "| - kernel26-fallback.img to kernel26${KERNEL_NAME}-fallback.img |" + echo "--------------------------------------------------" + echo ">>> Kernel modules are now in" + echo ">>> '/lib/modules/${KERNEL_VERSION}/'," + echo ">>> some modules from AUR packages may have not been moved." + echo ">>> You should rebuild and reinstall those packages" + echo "" + fi } post_upgrade() { @@ -123,22 +142,40 @@ echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio" echo "" echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." -if [ "`vercmp $2 2.6.19`" -lt 0 ]; then - /sbin/mkinitcpio -p kernel26${KERNEL_NAME} -m "ATTENTION:\nIf you get a kernel panic below + if [ "`vercmp $2 2.6.19`" -lt 0 ]; then + /sbin/mkinitcpio -p kernel26${KERNEL_NAME} -m "ATTENTION:\nIf you get a kernel panic below and are using an Intel chipset, append 'earlymodules=piix' to the kernel commandline" -else - /sbin/mkinitcpio -p kernel26${KERNEL_NAME} -fi -if [ "`vercmp $2 2.6.21`" -lt 0 ]; then - echo "" - echo "Important ACPI Information:" - echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized." - echo ">>> The modules are located at:" - echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi" - echo ">>> For more information about ACPI modules check this wiki page:" - echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'" -fi + else + /sbin/mkinitcpio -p kernel26${KERNEL_NAME} + fi + if [ "`vercmp $2 2.6.21`" -lt 0 ]; then + echo "" + echo "Important ACPI Information:" + echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized." + echo ">>> The modules are located at:" + echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi" + echo ">>> For more information about ACPI modules check this wiki page:" + echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'" + fi + if [ "`vercmp $2 2.6.28.8`" -lt 0 ] && [ "${KERNEL_NAME}" != "" ]; then + echo "" + echo ">>> KERNEL RELEASE has changed (the \`uname -r\` output)" + echo ">>> ----------------------------------------------" + echo ">>> It is now '${KERNEL_VERSION}'" + echo ">>> Please change your bootloader config files:" + echo ">>> Grub: /boot/grub/menu.lst | Lilo: /etc/lilo.conf" + echo "--------------------------------------------------" + echo "| - vmlinuz26 to vmlinuz26${KERNEL_NAME} |" + echo "| - kernel26.img to kernel26${KERNEL_NAME}.img |" + echo "| - kernel26-fallback.img to kernel26${KERNEL_NAME}-fallback.img |" + echo "--------------------------------------------------" + echo ">>> Kernel modules are now in" + echo ">>> '/lib/modules/${KERNEL_VERSION}/'," + echo ">>> some modules from AUR packages may have not been moved." + echo ">>> You should rebuild and reinstall those packages" + echo "" + fi } op=$1