updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / kernel26-ovz32 / kernel26-ovz32.install
blob56c2dfe9531b29d0087404264b205c7108adeed8
1 #make kernelrelease
2 KERNEL_NAME=2.6.32.28-OVZ32-feoktistov.1
3 PKGNAME=kernel26-ovz32
5 post_install () {
6         echo ">>"
7         echo ">>> Updating module dependencies. Please wait ..."
9         depmod ${KERNEL_NAME}
11         echo ">>"
12         echo ">>> Generating initramfs, using mkinitcpio.  Please wait..."
13         echo ">>"
15         /sbin/mkinitcpio -p ${PKGNAME}
17         echo ">>> Note, what kernel-related packages such as ndiswrapper"
18         echo ">>> must be rebuilt for this custom kernel to work properly"
19         echo ">>"
20         echo ">>> You also must add this new kernel in boot loader config"
21         
22         echo ">>> Example for grub:"
23         cat <<GRUB
24 title Arch Linux OpenVZ
25         root   (hd0,0)
26         kernel /vmlinuz26-ovz32 root=/dev/sda1 ro
27         initrd /kernel26-ovz32.img
28 GRUB
29         
30         echo ">>> Example for LILO:"
31         cat <<LILO
32 image=/boot/vmlinuz26-ovz32
33         label=arch-openvz
34         root=/dev/sda1
35         initrd=/boot/kernel26-ovz32.img
36         read-only
37 LILO
40 post_upgrade() {
41         post_install
44 op=$1
45 shift
46 $op $*