X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fpaks%2Flinux-xen%2Finstall.sh;h=dab7dd7752d35eb28e8200ab86a6f571dc442233;hb=bb198266ac4950d7f7fc15c5398e423dc01660c2;hp=dacf80ce355eba391c2cc870d0f00eb69a37cf54;hpb=f44dda3ca48086b66d56ce3f0e3c8357249180c3;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/src/paks/linux-xen/install.sh b/src/paks/linux-xen/install.sh index dacf80ce35..dab7dd7752 100644 --- a/src/paks/linux-xen/install.sh +++ b/src/paks/linux-xen/install.sh @@ -17,14 +17,14 @@ # 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 . # +# Copyright (C) 2010 IPFire-Team . # # # ############################################################################ # . /opt/pakfire/lib/functions.sh extract_files # -KVER=2.6.32.9 +KVER=2.6.32.24 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" @@ -62,9 +64,7 @@ fi # # Made initramdisk # -cp -f /etc/mkinitcpio.conf.org /etc/mkinitcpio.conf -sed -i -e "s| autodetect | |g" /etc/mkinitcpio.conf -mkinitcpio -k $KVER-ipfire-xen -g /boot/ipfirerd-$KVER-xen.img +/sbin/dracut --force --verbose /boot/ipfirerd-$KVER-xen.img $KVER-ipfire-xen # # Create new module depency #