linux-pae: prevent install on non pae systems

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2016-05-06 15:16:12 +02:00
parent 4558108c4d
commit f61b838fb0

View File

@@ -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-2014 IPFire-Team <info@ipfire.org>. # # Copyright (C) 2007-2016 IPFire-Team <info@ipfire.org>. #
# # # #
############################################################################ ############################################################################
# #
@@ -42,6 +42,13 @@ function find_partition() {
return 0 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 extract_files
# #
KVER=xxxKVERxxx KVER=xxxKVERxxx
@@ -75,8 +82,6 @@ else
ln -s grub.conf $MNThdd/boot/grub/menu.lst ln -s grub.conf $MNThdd/boot/grub/menu.lst
fi fi
# request a reboot if pae is supported # request a reboot
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then touch /var/run/need_reboot
touch /var/run/need_reboot
fi
sync && sync sync && sync