# 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>. #
# #
############################################################################
#
#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"
# 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
remove_files
-mv -f /boot/grub/grub-backup-2.6.32.*.-xen.conf /boot/grub/grub.conf
+mv -f /boot/grub/grub-backup-2.6.32.*-xen.conf /boot/grub/grub.conf