From mboxrd@z Thu Jan  1 00:00:00 1970
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, core90, updated.
 9d05aa770ae2ee6b34c0a0921f83b7c4663b9af3
Date: Wed, 20 May 2015 11:05:06 +0200
Message-ID: <20150520090506.CDF1F22384@argus.ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2557135308618608891=="
List-Id: <ipfire-scm.lists.ipfire.org>

--===============2557135308618608891==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, core90 has been updated
       via  9d05aa770ae2ee6b34c0a0921f83b7c4663b9af3 (commit)
       via  888726854ff409a6f57b01592083eb6256d65250 (commit)
      from  5f51d10373a8224027a14c055ec87e3109d58511 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9d05aa770ae2ee6b34c0a0921f83b7c4663b9af3
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date:   Wed May 20 11:03:42 2015 +0200

    core90: fix grub.cfg update on xen hvm installations.

commit 888726854ff409a6f57b01592083eb6256d65250
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date:   Wed May 20 11:00:12 2015 +0200

    linux-pae: fix grub entry for xen hvm machines.

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/core/90/update.sh | 19 +++---------------
 lfs/linux                          |  2 +-
 src/paks/linux-pae/install.sh      | 41 +++++++++++++++++-------------------=
--
 3 files changed, 22 insertions(+), 40 deletions(-)

Difference in files:
diff --git a/config/rootfiles/core/90/update.sh b/config/rootfiles/core/90/up=
date.sh
index fa67f6b..34dacf1 100644
--- a/config/rootfiles/core/90/update.sh
+++ b/config/rootfiles/core/90/update.sh
@@ -225,22 +225,9 @@ if [ `grep "ENABLED=3Don" /var/ipfire/vpn/settings` ]; t=
hen
 	/etc/init.d/ipsec start
 fi
=20
-case "$(uname -m)" in
-	i?86)
-	case "$(find_device "/")" in
-		xvd* )
-			echo Skip remove grub2 files, because pygrub fail.
-			rm -f /boot/grub/*
-			echo config will recreated by linux-pae install.
-			;;
-		* )
-			#
-			# Update to GRUB2 config
-			#
-			grub-mkconfig > /boot/grub/grub.cfg
-			;;
-	esac
-esac
+if [ -e /boot/grub/grub.cfg ]; then
+		grub-mkconfig > /boot/grub/grub.cfg
+fi
=20
 # Upadate Kernel version uEnv.txt
 if [ -e /boot/uEnv.txt ]; then
diff --git a/lfs/linux b/lfs/linux
index b2d2552..bd8a075 100644
--- a/lfs/linux
+++ b/lfs/linux
@@ -37,7 +37,7 @@ DIR_APP    =3D $(DIR_SRC)/$(THISAPP)
 CFLAGS     =3D
 CXXFLAGS   =3D
=20
-PAK_VER    =3D 59
+PAK_VER    =3D 60
 DEPS	   =3D ""
=20
 VERSUFIX=3Dipfire$(KCFG)
diff --git a/src/paks/linux-pae/install.sh b/src/paks/linux-pae/install.sh
index c980a01..27e665f 100644
--- a/src/paks/linux-pae/install.sh
+++ b/src/paks/linux-pae/install.sh
@@ -55,29 +55,24 @@ depmod -a $KVER-ipfire-pae
 #
 /usr/bin/dracut --force --xz /boot/initramfs-$KVER-ipfire-pae.img $KVER-ipfi=
re-pae =20
=20
-
-ROOT=3D"$(find_partition "/")"
-case $ROOT in
-	xvd* )
-		#
-		# We are on XEN so create new grub.conf / menu.lst for pygrub
-		#
-		echo "timeout 10"                          > /boot/grub/grub.conf
-		echo "default 0"                          >> /boot/grub/grub.conf
-		echo "title IPFire (pae-kernel)"          >> /boot/grub/grub.conf
-		echo "  kernel /vmlinuz-$KVER-ipfire-pae root=3D/dev/$ROOT rootdelay=3D10 =
panic=3D10 console=3Dhvc0" \
-							  >> /boot/grub/grub.conf
-		echo "  initrd /initramfs-$KVER-ipfire-pae.img" >> /boot/grub/grub.conf
-		echo "# savedefault 0"			  >> /boot/grub/grub.conf
-		ln -s grub.conf $MNThdd/boot/grub/menu.lst
-		;;
-	* )
-		#
-		# Update grub2 config
-		#
-		grub-mkconfig > /boot/grub/grub.cfg
-		;;
-esac
+if [ -e /boot/grub/grub.cfg ]; then
+	#
+	# Update grub2 config
+	#
+	grub-mkconfig > /boot/grub/grub.cfg
+else
+	#
+	# xen pv with pygrub need grub.conf / menu.lst
+	#
+	echo "timeout 10"                          > /boot/grub/grub.conf
+	echo "default 0"                          >> /boot/grub/grub.conf
+	echo "title IPFire (pae-kernel)"          >> /boot/grub/grub.conf
+	echo "  kernel /vmlinuz-$KVER-ipfire-pae root=3D/dev/$ROOT rootdelay=3D10 p=
anic=3D10 console=3Dhvc0" \
+						  >> /boot/grub/grub.conf
+	echo "  initrd /initramfs-$KVER-ipfire-pae.img" >> /boot/grub/grub.conf
+	echo "# savedefault 0"			  >> /boot/grub/grub.conf
+	ln -s grub.conf $MNThdd/boot/grub/menu.lst
+fi
=20
 # request a reboot if pae is supported
 if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" =3D=3D "" ]; then


hooks/post-receive
--
IPFire 2.x development tree

--===============2557135308618608891==--