mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
kernel: drop extra i586-pae kernel
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,7 @@ boot/config-KVER-ipfire
|
||||
boot/vmlinuz-KVER-ipfire
|
||||
etc/modprobe.d/framebuffer.conf
|
||||
etc/modprobe.d/ipv6.conf
|
||||
#lib/modules
|
||||
#lib/modules/KVER-ipfire
|
||||
#lib/modules/KVER-ipfire/build
|
||||
#lib/modules/KVER-ipfire/build/.config
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,32 +0,0 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation, either version 3 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = kernel
|
||||
|
||||
include linux
|
||||
|
||||
PROG = linux-pae
|
||||
SUP_ARCH = i586
|
||||
9
make.sh
9
make.sh
@@ -1188,15 +1188,6 @@ buildipfire() {
|
||||
lfsmake2 linux-initrd KCFG=""
|
||||
;;
|
||||
i586)
|
||||
# x86-pae (Native and new XEN) kernel build
|
||||
lfsmake2 linux KCFG="-pae"
|
||||
# lfsmake2 backports KCFG="-pae"
|
||||
# lfsmake2 e1000e KCFG="-pae"
|
||||
# lfsmake2 igb KCFG="-pae"
|
||||
# lfsmake2 ixgbe KCFG="-pae"
|
||||
lfsmake2 xtables-addons KCFG="-pae"
|
||||
lfsmake2 linux-initrd KCFG="-pae"
|
||||
|
||||
# x86 kernel build
|
||||
lfsmake2 linux KCFG=""
|
||||
# lfsmake2 backports KCFG=""
|
||||
|
||||
@@ -27,14 +27,5 @@ if [ "${?}" == "1" ]; then
|
||||
reboot -f
|
||||
fi
|
||||
|
||||
# plan install pae kernel at next pakfire update if pae is supported
|
||||
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
|
||||
if [ ! -e /opt/pakfire/db/installed/meta-linux-pae ]; then
|
||||
echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae
|
||||
echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae
|
||||
echo "Release: 0" >> /opt/pakfire/db/installed/meta-linux-pae
|
||||
fi
|
||||
fi
|
||||
|
||||
/etc/init.d/sysklogd stop
|
||||
touch /var/ipfire/main/firstsetup_ok
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
#!/bin/bash
|
||||
############################################################################
|
||||
# #
|
||||
# This file is part of the IPFire Firewall. #
|
||||
# #
|
||||
# IPFire is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPFire is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# 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-2016 IPFire-Team <info@ipfire.org>. #
|
||||
# #
|
||||
############################################################################
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
|
||||
|
||||
function find_partition() {
|
||||
local mountpoint="${1}"
|
||||
|
||||
local root
|
||||
local dev mp fs flags rest
|
||||
while read -r dev mp fs flags rest; do
|
||||
# Skip unwanted entries
|
||||
[ "${dev}" = "rootfs" ] && continue
|
||||
|
||||
if [ "${mp}" = "${mountpoint}" ] && [ -b "${dev}" ]; then
|
||||
root="$(basename "${dev}")"
|
||||
break
|
||||
fi
|
||||
done < /proc/mounts
|
||||
echo ${root}
|
||||
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
|
||||
#
|
||||
depmod -a $KVER-ipfire-pae
|
||||
#
|
||||
# Made initramdisk
|
||||
#
|
||||
/usr/bin/dracut --force --early-microcode --xz /boot/initramfs-$KVER-ipfire-pae.img $KVER-ipfire-pae
|
||||
|
||||
if [ -e /boot/grub/grub.cfg ]; then
|
||||
#
|
||||
# Update grub2 config
|
||||
#
|
||||
grub-mkconfig > /boot/grub/grub.cfg
|
||||
fi
|
||||
|
||||
if [ -e /boot/grub/grub.conf ]; then
|
||||
#
|
||||
# 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 " 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
|
||||
echo "# savedefault 0" >> /boot/grub/grub.conf
|
||||
ln -s grub.conf $MNThdd/boot/grub/menu.lst
|
||||
fi
|
||||
|
||||
# request a reboot
|
||||
touch /var/run/need_reboot
|
||||
sync && sync
|
||||
@@ -1,34 +0,0 @@
|
||||
#!/bin/bash
|
||||
############################################################################
|
||||
# #
|
||||
# This file is part of the IPFire Firewall. #
|
||||
# #
|
||||
# IPFire is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPFire is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# 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>. #
|
||||
# #
|
||||
############################################################################
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
if [ -f /boot/grub/grub.conf ]; then
|
||||
echo "Error! Connot remove linux-pae because we are on XEN."
|
||||
exit 1
|
||||
fi
|
||||
remove_files
|
||||
rm -rf /boot/initramfs-*-pae.img
|
||||
rm -rf /boot/vmlinuz-*-pae
|
||||
rm -rf /lib/modules/*-ipfire-pae
|
||||
grub-mkconfig > /boot/grub/grub.cfg
|
||||
sync && sync
|
||||
@@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
############################################################################
|
||||
# #
|
||||
# This file is part of the IPFire Firewall. #
|
||||
# #
|
||||
# IPFire is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPFire is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# 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>. #
|
||||
# #
|
||||
############################################################################
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
remove_files
|
||||
rm -rf /boot/initramfs-*-pae.img
|
||||
rm -rf /boot/vmlinuz-*-pae
|
||||
rm -rf /lib/modules/*-ipfire-pae
|
||||
if [ ! -f /boot/grub/grub.conf ]; then
|
||||
grub-mkconfig > /boot/grub/grub.cfg
|
||||
fi
|
||||
./install.sh
|
||||
Reference in New Issue
Block a user