From: Arne Fitzenreiter Date: Fri, 6 May 2016 13:16:12 +0000 (+0200) Subject: linux-pae: prevent install on non pae systems X-Git-Tag: v2.19-core103~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f61b838fb0842bf76e7cf12f3eaa6e86bfd275be;p=ipfire-2.x.git linux-pae: prevent install on non pae systems Signed-off-by: Arne Fitzenreiter --- diff --git a/src/paks/linux-pae/install.sh b/src/paks/linux-pae/install.sh index 58a9c1c8d6..ef271f352a 100644 --- a/src/paks/linux-pae/install.sh +++ b/src/paks/linux-pae/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-2014 IPFire-Team . # +# Copyright (C) 2007-2016 IPFire-Team . # # # ############################################################################ # @@ -42,6 +42,13 @@ function find_partition() { return 0 } +if [ "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then + rm -f /opt/pakfire/db/instelled/meta-linux-pae + /usr/bin/logger -p syslog.emerg -i pakfire \ + "linux-pae: no pae support found, aborted!" + exit 1 +fi + extract_files # KVER=xxxKVERxxx @@ -75,8 +82,6 @@ else ln -s grub.conf $MNThdd/boot/grub/menu.lst fi -# request a reboot if pae is supported -if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then - touch /var/run/need_reboot -fi +# request a reboot +touch /var/run/need_reboot sync && sync \ No newline at end of file