# 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 <info@ipfire.org>. #
+# Copyright (C) 2007-2016 IPFire-Team <info@ipfire.org>. #
# #
############################################################################
#
return 0
}
+if [ "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
+ rm -f /opt/pakfire/db/installed/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
-
+ROOT=`find_partition /`
#
# Create new module depency
#
#
# Made initramdisk
#
-/usr/bin/dracut --force --xz /boot/initramfs-$KVER-ipfire-pae.img $KVER-ipfire-pae
+/usr/bin/dracut --force --early-microcode --xz /boot/initramfs-$KVER-ipfire-pae.img $KVER-ipfire-pae
if [ -e /boot/grub/grub.cfg ]; then
#
echo "timeout 10" > /boot/grub/grub.conf
echo "default 0" >> /boot/grub/grub.conf
echo "title IPFire (pae-kernel)" >> /boot/grub/grub.conf
+ echo " root (hd0)" >> /boot/grub/grub.conf
echo " kernel /vmlinuz-$KVER-ipfire-pae root=/dev/$ROOT rootdelay=10 panic=10 console=hvc0" \
>> /boot/grub/grub.conf
echo " initrd /initramfs-$KVER-ipfire-pae.img" >> /boot/grub/grub.conf
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