rename core138 -> core139 to insert a emergency core update

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter 2019-11-14 17:28:38 +00:00
parent b0f2208425
commit b1dc936cc6
46 changed files with 32 additions and 138 deletions

View File

@ -1 +0,0 @@
../../../common/IO-Socket-SSL

View File

@ -1 +0,0 @@
../../../common/Net_SSLeay

View File

@ -1 +0,0 @@
../../../../common/aarch64/linux

View File

@ -1 +0,0 @@
../../../../common/aarch64/linux-initrd

View File

@ -1 +0,0 @@
../../../../common/armv5tel/linux-initrd-kirkwood

View File

@ -1 +0,0 @@
../../../../common/armv5tel/linux-initrd-multi

View File

@ -1 +0,0 @@
../../../../common/armv5tel/linux-kirkwood

View File

@ -1 +0,0 @@
../../../../common/armv5tel/linux-multi

View File

@ -1 +0,0 @@
../../../common/bind

View File

@ -1 +0,0 @@
../../../common/collectd

View File

@ -1 +0,0 @@
../../../common/dhcpcd

View File

@ -1,22 +0,0 @@
etc/system-release
etc/issue
srv/web/ipfire/cgi-bin/credits.cgi
usr/lib/firewall/rules.pl
usr/sbin/firewall-policy
var/ipfire/langs
etc/logrotate.conf
etc/rc.d/init.d/firewall
etc/rc.d/init.d/unbound
etc/rc.d/init.d/networking/red.up/99-geoip-database
etc/sysctl.conf
srv/web/ipfire/cgi-bin/dns.cgi
srv/web/ipfire/cgi-bin/ovpnmain.cgi
srv/web/ipfire/cgi-bin/qos.cgi
srv/web/ipfire/cgi-bin/vpnmain.cgi
usr/lib/firewall/rules.pl
usr/sbin/firewall-policy
usr/local/bin/xt_geoip_update
var/ipfire/backup/bin/backup.pl
var/ipfire/qos/bin/makeqosscripts.pl
var/ipfire/suricata/ruleset-sources
srv/web/ipfire/cgi-bin/ovpnmain.cgi

View File

@ -1 +0,0 @@
../../../../common/i586/linux

View File

@ -1 +0,0 @@
../../../../common/i586/linux-initrd

View File

@ -1 +0,0 @@
../../../common/iproute2

View File

@ -1 +0,0 @@
../../../common/ipset

View File

@ -1 +0,0 @@
../../../common/iptables

View File

@ -1 +0,0 @@
../../../common/knot

View File

@ -1 +0,0 @@
../../../common/libhtp

View File

@ -1 +0,0 @@
../../../common/libnetfilter_queue

View File

@ -1 +0,0 @@
../../../common/libpcap

View File

@ -1 +0,0 @@
../../../common/libssh

View File

@ -1 +0,0 @@
../../../common/pcre

View File

@ -1 +0,0 @@
../../../common/strongswan

View File

@ -1 +0,0 @@
../../../common/suricata

View File

@ -1 +0,0 @@
../../../common/tzdata

View File

@ -1 +0,0 @@
../../../common/unbound

View File

@ -1 +0,0 @@
../../../common/wpa_supplicant

View File

@ -1 +0,0 @@
../../../../common/x86_64/linux

View File

@ -1 +0,0 @@
../../../../common/x86_64/linux-initrd

View File

@ -0,0 +1 @@
../../../common/bash

View File

@ -0,0 +1 @@
../../../common/ca-certificates

View File

@ -0,0 +1 @@
../../../common/ddns

View File

@ -0,0 +1,16 @@
etc/system-release
etc/issue
srv/web/ipfire/cgi-bin/credits.cgi
var/ipfire/langs
etc/httpd/conf/vhosts.d/ipfire-interface.conf
etc/httpd/conf/vhosts.d/ipfire-interface-ssl.conf
etc/rc.d/init.d/functions
etc/rc.d/init.d/networking/red.up/23-suricata
etc/rc.d/init.d/unbound
etc/suricata/suricata.yaml
srv/web/ipfire/cgi-bin/ids.cgi
srv/web/ipfire/cgi-bin/mail.cgi
srv/web/ipfire/cgi-bin/ovpnmain.cgi
usr/sbin/convert-snort
usr/lib/firewall/firewall-lib.pl
var/ipfire/ids-functions.pl

View File

@ -0,0 +1 @@
../../../../common/i586/intel-microcode

View File

@ -0,0 +1 @@
../../../../common/i586/openssl-sse2

View File

@ -0,0 +1 @@
../../../common/logwatch

View File

@ -0,0 +1 @@
../../../common/lz4

View File

@ -0,0 +1 @@
../../../common/openssl

View File

@ -0,0 +1 @@
../../../common/openvpn

View File

@ -0,0 +1 @@
../../../common/readline

View File

@ -0,0 +1 @@
../../../common/readline-compat

View File

@ -0,0 +1 @@
../../../common/squid

View File

@ -0,0 +1 @@
../../../../common/x86_64/intel-microcode

View File

@ -24,7 +24,7 @@
. /opt/pakfire/lib/functions.sh
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
core=137
core=139
exit_with_error() {
# Set last succesfull installed core.
@ -41,42 +41,6 @@ for (( i=1; i<=$core; i++ )); do
rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
done
KVER="xxxKVERxxx"
# Backup uEnv.txt if exist
if [ -e /boot/uEnv.txt ]; then
cp -vf /boot/uEnv.txt /boot/uEnv.txt.org
fi
# Do some sanity checks.
case $(uname -r) in
*-ipfire*)
# Ok.
;;
*)
exit_with_error "ERROR cannot update. No IPFire Kernel." 1
;;
esac
# Check diskspace on root
ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
if [ $ROOTSPACE -lt 80000 ]; then
exit_with_error "ERROR cannot update because not enough free space on root." 2
exit 2
fi
# Remove the old kernel
rm -rf /boot/System.map-*
rm -rf /boot/config-*
rm -rf /boot/ipfirerd-*
rm -rf /boot/initramfs-*
rm -rf /boot/vmlinuz-*
rm -rf /boot/uImage-*-ipfire-*
rm -rf /boot/zImage-*-ipfire-*
rm -rf /boot/uInit-*-ipfire-*
rm -rf /boot/dtb-*-ipfire-*
rm -rf /lib/modules
# Remove files
@ -92,57 +56,9 @@ ldconfig
/usr/local/bin/update-lang-cache
# Start services
/usr/local/bin/ipsecctrl S
/etc/init.d/suricata restart
/etc/init.d/unbound restart
/etc/init.d/collectd restart
# remove lm_sensor config after collectd was started
# to reserch sensors at next boot with updated kernel
rm -f /etc/sysconfig/lm_sensors
# generate new qos script
/usr/local/bin/qosctrl generate
# Search sensors again after reboot into the new kernel
rm -f /etc/sysconfig/lm_sensors
# Upadate Kernel version uEnv.txt
if [ -e /boot/uEnv.txt ]; then
sed -i -e "s/KVER=.*/KVER=${KVER}/g" /boot/uEnv.txt
fi
# call user update script (needed for some arm boards)
if [ -e /boot/pakfire-kernel-update ]; then
/boot/pakfire-kernel-update ${KVER}
fi
case "$(uname -m)" in
i?86)
# Force (re)install pae kernel if pae is supported
rm -rf /opt/pakfire/db/installed/meta-linux-pae
rm -rf /opt/pakfire/db/rootfiles/linux-pae
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
BOOTSPACE=`df /boot -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
if [ $BOOTSPACE -lt 22000 -o $ROOTSPACE -lt 120000 ]; then
/usr/bin/logger -p syslog.emerg -t ipfire \
"core-update-${core}: WARNING not enough space for pae kernel."
touch /var/run/need_reboot
else
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
else
touch /var/run/need_reboot
fi
;;
*)
# This update needs a reboot...
touch /var/run/need_reboot
;;
esac
# This update needs a reboot...
#touch /var/run/need_reboot
# Finish
/etc/init.d/fireinfo start