mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Fix linux-xen install/uninstall for updating ct'server.
This commit is contained in:
@@ -35,7 +35,7 @@ CFLAGS =
|
|||||||
CXXFLAGS =
|
CXXFLAGS =
|
||||||
|
|
||||||
PROG = linux-xen
|
PROG = linux-xen
|
||||||
PAK_VER = 9
|
PAK_VER = 10
|
||||||
DEPS = ""
|
DEPS = ""
|
||||||
|
|
||||||
# Normal build or XEN build.
|
# Normal build or XEN build.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
# along with IPFire; if not, write to the Free Software #
|
# along with IPFire; if not, write to the Free Software #
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# 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>. #
|
||||||
# #
|
# #
|
||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
@@ -54,6 +54,8 @@ if [ ${?} = 0 ]; then
|
|||||||
#Xen Kernel is active
|
#Xen Kernel is active
|
||||||
#Set grub default entry to this kernel
|
#Set grub default entry to this kernel
|
||||||
sed -i -e "s|^default saved|default $ENTRY|g" /boot/grub/grub.conf
|
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
|
else
|
||||||
#Normal Kernel
|
#Normal Kernel
|
||||||
#pygrub crash with "default saved"
|
#pygrub crash with "default saved"
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
# along with IPFire; if not, write to the Free Software #
|
# along with IPFire; if not, write to the Free Software #
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# 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
|
. /opt/pakfire/lib/functions.sh
|
||||||
remove_files
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user