1 # arg 1: the new package version
2 # arg 2: the old package version
4 KERNEL_VERSION=2.6.32.15-xen-dom0
7 # updating module dependencies
8 echo ">>> Updating module dependencies. Please wait ..."
9 depmod -v $KERNEL_VERSION > /dev/null 2>&1
10 # generate init ramdisks
11 echo ">>> MKINITCPIO SETUP"
12 echo ">>> ----------------"
13 echo ">>> If you use LVM2, Encrypted root or software RAID,"
14 echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
15 echo ">>> More information about mkinitcpio setup can be found here:"
16 echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
18 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
19 /sbin/mkinitcpio -p kernel26-xen-dom0
23 pacman -Q grub &>/dev/null
25 pacman -Q lilo &>/dev/null
28 if [ $haslilo -eq 0 ]; then
30 if [ $hasgrub -eq 0 ]; then
31 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
33 echo ">>> You appear to be using the LILO bootloader. You should run"
34 echo ">>> 'lilo' before rebooting."
39 if grep "/boot" /etc/fstab 2>&1 >/dev/null; then
40 if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
41 echo "WARNING: /boot appears to be a seperate partition but is not mounted"
42 echo " This is most likely not what you want. Please mount your /boot"
43 echo " partition and reinstall the kernel unless you are sure this is OK"
47 if [ "`vercmp $2 2.6.13`" -lt 0 ]; then
48 # important upgrade notice
50 echo ">>> IMPORTANT KERNEL UPGRADE NOTICE"
51 echo ">>> -------------------------------"
52 echo ">>> As of kernel 2.6.13, DevFS is NO LONGER AVAILABLE!"
53 echo ">>> If you still use DevFS, please make the transition to uDev before"
54 echo ">>> rebooting. If you really need to stay with DevFS for some reason,"
55 echo ">>> then you can manually downgrade to an older version:"
57 echo ">>> # pacman -U http://archlinux.org/~judd/kernel/kernel26-scsi-2.6.12.2-1.pkg.tar.gz"
59 echo ">>> If you choose to downgrade, don't forget to add kernel26-scsi to your"
60 echo ">>> IgnorePkg list in /etc/pacman.conf"
62 echo ">>> (NOTE: The following portion applies to uDev users as well!)"
64 echo ">>> If you use any DevFS paths in your GRUB menu.lst, then you will not"
65 echo ">>> be able to boot! Change your root= parameter to use the classic"
66 echo ">>> naming scheme."
69 echo ">>> - change root=/dev/discs/disc0/part3 to root=/dev/sda3"
70 echo ">>> - change root=/dev/md/0 to root=/dev/md0"
73 # generate new init ramdisk
74 if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
75 echo ">>> --------------------------------------------------------------"
76 echo ">>> | WARNING: |"
77 echo ">>> |mkinitrd is not supported anymore in kernel >=2.6.18 series!|"
78 echo ">>> | Please change to Mkinitcpio setup. |"
79 echo ">>> --------------------------------------------------------------"
82 # updating module dependencies
83 echo ">>> Updating module dependencies. Please wait ..."
84 depmod -v $KERNEL_VERSION > /dev/null 2>&1
85 echo ">>> MKINITCPIO SETUP"
86 echo ">>> ----------------"
87 if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
88 echo ">>> Please change your bootloader config files:"
89 echo ">>> Grub: /boot/grub/menu.lst | Lilo: /etc/lilo.conf"
90 echo "------------------------------------------------"
91 echo "| - initrd26.img to kernel26-xen-dom0.img |"
92 echo "| - initrd26-full.img to kernel26-xen-dom0-fallback.img |"
93 echo "------------------------------------------------"
95 if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
97 echo ">>> New PATA/IDE subsystem - EXPERIMENTAL"
99 echo ">>> To use the new pata drivers, change the 'ide' hook "
100 echo ">>> to 'pata' in /etc/mkinicpio.conf HOOKS="
101 echo ">>> The new system changes: /dev/hd? to /dev/sd?"
102 echo ">>> Don't forget to modify GRUB, LILO and fstab to the"
103 echo ">>> new naming system. "
104 echo ">>> eg: hda3 --> sda3, hdc8 --> sdc8"
106 echo ">>> piix/ata_piix (Intel chipsets) - IMPORTANT"
108 echo ">>> If you have enabled ide/pata/sata HOOKs in /etc/mkinitcpio.conf"
109 echo ">>> the 'ata_piix' module will be used."
110 echo ">>> This may cause your devices to shift names, eg:"
111 echo ">>> - IDE: devices from hd? to sd?"
112 echo ">>> - SATA: sda might shift to sdc if you have 2 other disks on a PIIX IDE port."
113 echo ">>> To check if this will affect you, check 'mkinitcpio -M' for piix/ata_piix"
117 echo ">>> If you use LVM2, Encrypted root or software RAID,"
118 echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
119 echo ">>> More information about mkinitcpio setup can be found here:"
120 echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
122 echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
123 if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
124 /sbin/mkinitcpio -p kernel26-xen-dom0 -m "ATTENTION:\nIf you get a kernel panic below
125 and are using an Intel chipset, append 'earlymodules=piix' to the
128 /sbin/mkinitcpio -p kernel26-xen-dom0
130 if [ "`vercmp $2 2.6.21`" -lt 0 ]; then
132 echo "Important ACPI Information:"
133 echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized."
134 echo ">>> The modules are located at:"
135 echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi"
136 echo ">>> For more information about ACPI modules check this wiki page:"
137 echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'"