From b6785f2ef8bce570e6db66add579a2a89ee1ec78 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 7 Jun 2010 23:41:36 +0200 Subject: [PATCH] Fix linux-xen install/uninstall for updating ct'server. --- lfs/linux | 2 +- src/paks/linux-xen/install.sh | 4 +++- src/paks/linux-xen/uninstall.sh | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lfs/linux b/lfs/linux index b77c560c11..cf609f20bb 100644 --- a/lfs/linux +++ b/lfs/linux @@ -35,7 +35,7 @@ CFLAGS = CXXFLAGS = PROG = linux-xen -PAK_VER = 9 +PAK_VER = 10 DEPS = "" # Normal build or XEN build. diff --git a/src/paks/linux-xen/install.sh b/src/paks/linux-xen/install.sh index d6ad9f1464..eb2285b1e0 100644 --- a/src/paks/linux-xen/install.sh +++ b/src/paks/linux-xen/install.sh @@ -17,7 +17,7 @@ # 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 . # # # ############################################################################ # @@ -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" diff --git a/src/paks/linux-xen/uninstall.sh b/src/paks/linux-xen/uninstall.sh index ca65ef7c47..fe2316566e 100644 --- a/src/paks/linux-xen/uninstall.sh +++ b/src/paks/linux-xen/uninstall.sh @@ -17,10 +17,10 @@ # 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 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 -- 2.39.2