]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/paks/linux-xen/install.sh
Updated kernel (2.6.32.23).
[people/pmueller/ipfire-2.x.git] / src / paks / linux-xen / install.sh
index 900bcf7eb1b405a4c493180f67a137b55edd5b8a..5092923daff8a4eca1083ff906cb8582ab3647d9 100644 (file)
 # along with IPFire; if not, write to the Free Software                    #
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
 #                                                                          #
-# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+# Copyright (C) 2010 IPFire-Team <info@ipfire.org>.                        #
 #                                                                          #
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
 extract_files
 #
-KVER=2.6.27.42
+KVER=2.6.32.23
 ROOT=`grep "root=" /boot/grub/grub.conf | cut -d"=" -f2 | cut -d" " -f1 | tail -n 1`
 MOUNT=`grep "kernel" /boot/grub/grub.conf | tail -n 1`
 # Nur den letzten Parameter verwenden
@@ -54,6 +54,8 @@ if [ ${?} = 0 ]; then
        #Xen Kernel is active
        #Set grub default entry to this kernel
        sed -i -e "s|^default saved|default $ENTRY|g" /boot/grub/grub.conf
+       #Remove ramdisk of normal kernel (not enough space)
+       rm -f /boot/ipfirerd-$KVER.img
 else
        #Normal Kernel
        #pygrub crash with "default saved"
@@ -64,8 +66,6 @@ fi
 #
 cp -f /etc/mkinitcpio.conf.org /etc/mkinitcpio.conf
 sed -i -e "s| autodetect | |g" /etc/mkinitcpio.conf
-# Remove Reiser4 (not working with xen)
-sed -i -e "s|reiser4 | |g" /etc/mkinitcpio.conf
 mkinitcpio -k $KVER-ipfire-xen -g /boot/ipfirerd-$KVER-xen.img
 #
 # Create new module depency