1 # arg 1: the new package version
2 # arg 2: the old package version
5 KERNEL_VERSION=2.6.39-ideapad
6 RELEASE=Linux_2_6_39 # needed for little message about changes
9 # updating module dependencies
10 echo ">>> Updating module dependencies. Please wait ..."
11 depmod $KERNEL_VERSION
12 # generate init ramdisks
13 echo ">>> MKINITCPIO SETUP"
14 echo ">>> ----------------"
15 echo ">>> If you use LVM2, Encrypted root or software RAID,"
16 echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
17 echo ">>> More information about mkinitcpio setup can be found here:"
18 echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
20 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
21 /sbin/mkinitcpio -p kernel26${KERNEL_NAME}
23 echo "Changelog for new kernel release at http://kernelnewbies.org/$RELEASE"
27 pacman -Q grub &>/dev/null
29 pacman -Q grub2 &>/dev/null
31 pacman -Q lilo &>/dev/null
34 if [ $haslilo -eq 0 ]; then
36 if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
37 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
39 echo ">>> You appear to be using the LILO bootloader. You should run"
40 echo ">>> 'lilo' before rebooting."
45 if grep "^[^#]*[[:space:]]/boot" /etc/fstab 2>&1 >/dev/null; then
46 if ! grep "[[:space:]]/boot" /etc/mtab 2>&1 >/dev/null; then
47 echo "WARNING: /boot appears to be a seperate partition but is not mounted"
48 echo " This is most likely not what you want. Please mount your /boot"
49 echo " partition and reinstall the kernel unless you are sure this is OK"
53 if [ "`vercmp $2 2.6.13`" -lt 0 ]; then
54 # important upgrade notice
56 echo ">>> IMPORTANT KERNEL UPGRADE NOTICE"
57 echo ">>> -------------------------------"
58 echo ">>> As of kernel 2.6.13, DevFS is NO LONGER AVAILABLE!"
59 echo ">>> If you still use DevFS, please make the transition to uDev before"
60 echo ">>> rebooting. If you really need to stay with DevFS for some reason,"
61 echo ">>> then you can manually downgrade to an older version:"
63 echo ">>> # pacman -U http://archlinux.org/~judd/kernel/kernel26-scsi-2.6.12.2-1.pkg.tar.gz"
65 echo ">>> If you choose to downgrade, don't forget to add kernel26-scsi to your"
66 echo ">>> IgnorePkg list in /etc/pacman.conf"
68 echo ">>> (NOTE: The following portion applies to uDev users as well!)"
70 echo ">>> If you use any DevFS paths in your GRUB menu.lst, then you will not"
71 echo ">>> be able to boot! Change your root= parameter to use the classic"
72 echo ">>> naming scheme."
75 echo ">>> - change root=/dev/discs/disc0/part3 to root=/dev/sda3"
76 echo ">>> - change root=/dev/md/0 to root=/dev/md0"
79 # generate new init ramdisk
80 if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
81 echo ">>> --------------------------------------------------------------"
82 echo ">>> | WARNING: |"
83 echo ">>> |mkinitrd is not supported anymore in kernel >=2.6.18 series!|"
84 echo ">>> | Please change to Mkinitcpio setup. |"
85 echo ">>> --------------------------------------------------------------"
88 # updating module dependencies
89 echo ">>> Updating module dependencies. Please wait ..."
90 depmod $KERNEL_VERSION
91 echo ">>> MKINITCPIO SETUP"
92 echo ">>> ----------------"
93 if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
94 echo ">>> Please change your bootloader config files:"
95 echo ">>> Grub: /boot/grub/menu.lst | Lilo: /etc/lilo.conf"
96 echo "------------------------------------------------"
97 echo "| - initrd26.img to kernel26${KERNEL_NAME}.img |"
98 echo "| - initrd26-full.img to kernel26${KERNEL_NAME}-fallback.img |"
99 echo "------------------------------------------------"
101 if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
103 echo ">>> New PATA/IDE subsystem - EXPERIMENTAL"
104 echo ">>> ----------"
105 echo ">>> To use the new pata drivers, change the 'ide' hook "
106 echo ">>> to 'pata' in /etc/mkinicpio.conf HOOKS="
107 echo ">>> The new system changes: /dev/hd? to /dev/sd?"
108 echo ">>> Don't forget to modify GRUB, LILO and fstab to the"
109 echo ">>> new naming system. "
110 echo ">>> eg: hda3 --> sda3, hdc8 --> sdc8"
112 echo ">>> piix/ata_piix (Intel chipsets) - IMPORTANT"
114 echo ">>> If you have enabled ide/pata/sata HOOKs in /etc/mkinitcpio.conf"
115 echo ">>> the 'ata_piix' module will be used."
116 echo ">>> This may cause your devices to shift names, eg:"
117 echo ">>> - IDE: devices from hd? to sd?"
118 echo ">>> - SATA: sda might shift to sdc if you have 2 other disks on a PIIX IDE port."
119 echo ">>> To check if this will affect you, check 'mkinitcpio -M' for piix/ata_piix"
123 echo ">>> If you use LVM2, Encrypted root or software RAID,"
124 echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
125 echo ">>> More information about mkinitcpio setup can be found here:"
126 echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
128 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
129 if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
130 /sbin/mkinitcpio -p kernel26${KERNEL_NAME} -m "ATTENTION:\nIf you get a kernel panic below
131 and are using an Intel chipset, append 'earlymodules=piix' to the
134 /sbin/mkinitcpio -p kernel26${KERNEL_NAME}
136 if [ "`vercmp $2 2.6.21`" -lt 0 ]; then
138 echo "Important ACPI Information:"
139 echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized."
140 echo ">>> The modules are located at:"
141 echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi"
142 echo ">>> For more information about ACPI modules check this wiki page:"
143 echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'"
145 echo "Changelog for new kernel release at http://kernelnewbies.org/$RELEASE"
149 rm -f /boot/kernel26${KERNEL_NAME}.img
150 rm -f /boot/kernel26${KERNEL_NAME}-fallback.img