start core137 and add kernel and IO-Socket-SSL to updater

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2019-09-21 09:52:02 +00:00
parent 92fbca3417
commit 593a9326d8
85 changed files with 193 additions and 1 deletions

View File

@@ -1 +0,0 @@
../../../common/Archive-Tar

View File

@@ -1 +0,0 @@
../../../common/Archive-Zip

View File

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

View File

@@ -1 +0,0 @@
../../../common/Compress-Zlib

View File

@@ -1 +0,0 @@
../../../common/Convert-TNEF

View File

@@ -1 +0,0 @@
../../../common/Convert-UUlib

View File

@@ -1 +0,0 @@
../../../common/Crypt-PasswdMD5

View File

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

View File

@@ -1 +0,0 @@
../../../common/Digest-HMAC

View File

@@ -1 +0,0 @@
../../../common/Digest-SHA1

View File

@@ -1 +0,0 @@
../../../common/GD-Graph

View File

@@ -1 +0,0 @@
../../../common/GD-TextUtil

View File

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

View File

@@ -1 +0,0 @@
../../../common/HTML-Parser

View File

@@ -1 +0,0 @@
../../../common/HTML-Tagset

View File

@@ -1 +0,0 @@
../../../common/HTML-Template

View File

@@ -1 +0,0 @@
../../../common/IO-Stringy

View File

@@ -1 +0,0 @@
../../../common/Locale-Country

View File

@@ -1 +0,0 @@
../../../common/Mail-Tools

View File

@@ -1 +0,0 @@
../../../common/Net-DNS

View File

@@ -1 +0,0 @@
../../../common/Net-IPv4Addr

View File

@@ -1 +0,0 @@
../../../common/Net-Server

View File

@@ -1 +0,0 @@
../../../common/Net-Telnet

View File

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

View File

@@ -1 +0,0 @@
../../../common/Text-Tabs+Wrap

View File

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

View File

@@ -1 +0,0 @@
../../../common/Unix-Syslog

View File

@@ -1 +0,0 @@
../../../common/XML-Parser

View File

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

View File

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

View File

@@ -1 +0,0 @@
../../../../common/armv5tel/gcc

View File

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

View File

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

View File

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

View File

@@ -1,15 +0,0 @@
etc/system-release
etc/issue
srv/web/ipfire/cgi-bin/credits.cgi
var/ipfire/langs
etc/rc.d/init.d/firewall
usr/lib/firewall/firewall-lib.pl
usr/lib/firewall/rules.pl
usr/local/bin/xt_geoip_update
srv/web/ipfire/cgi-bin/connections.cgi
srv/web/ipfire/cgi-bin/ddns.cgi
srv/web/ipfire/cgi-bin/dhcp.cgi
srv/web/ipfire/cgi-bin/firewall.cgi
srv/web/ipfire/cgi-bin/logs.cgi/log.dat
srv/web/ipfire/cgi-bin/netexternal.cgi
srv/web/ipfire/cgi-bin/zoneconf.cgi

View File

@@ -1 +0,0 @@
../../../common/geoip-generator

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1 +0,0 @@
../../../common/libwww-perl

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1 +0,0 @@
../../../common/perl-Apache-Htpasswd

View File

@@ -1 +0,0 @@
../../../common/perl-CGI

View File

@@ -1 +0,0 @@
../../../common/perl-Device-Modem

View File

@@ -1 +0,0 @@
../../../common/perl-Device-SerialPort

View File

@@ -1 +0,0 @@
../../../common/perl-Email-Date-Format

View File

@@ -1 +0,0 @@
../../../common/perl-Font-TTF

View File

@@ -1 +0,0 @@
../../../common/perl-GD

View File

@@ -1 +0,0 @@
../../../common/perl-IO-String

View File

@@ -1 +0,0 @@
../../../common/perl-MIME-Lite

View File

@@ -1 +0,0 @@
../../../common/perl-Net-CIDR-Lite

View File

@@ -1 +0,0 @@
../../../common/perl-NetAddr-IP

View File

@@ -1 +0,0 @@
../../../common/perl-PDF-API2

View File

@@ -1 +0,0 @@
../../../common/perl-Sort-Naturally

View File

@@ -1 +0,0 @@
../../../common/perl-Switch

View File

@@ -1 +0,0 @@
../../../common/perl-Text-CSV_XS

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,4 @@
etc/system-release
etc/issue
srv/web/ipfire/cgi-bin/credits.cgi
var/ipfire/langs

View File

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

View File

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

View File

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

View File

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

View File

@@ -24,7 +24,7 @@
. /opt/pakfire/lib/functions.sh
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
core=136
core=137
exit_with_error() {
# Set last succesfull installed core.
@@ -41,6 +41,43 @@ 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
rm -f /etc/sysconfig/lm_sensors
# Remove files
@@ -49,37 +86,53 @@ done
# Extract files
extract_files
# Remove old perl files
rm -rf /usr/bin/perl5.12.3
rm -rf /usr/lib/perl5/5.12.3
rm -rf /usr/lib/perl5/site_perl/5.12.3
# update linker config
ldconfig
# Update crontab
sed -i -e "s|^01 0 \* \* \*./usr/local/bin/logwatch|05 0 \* \* \*\t/usr/local/bin/logwatch|g" /var/spool/cron/root.orig
fcrontab -z &>/dev/null
# Update Language cache
/usr/local/bin/update-lang-cache
# move unbound down after network down
mv /etc/rc.d/rc0.d/K79unbound /etc/rc.d/rc0.d/K86unbound
mv /etc/rc.d/rc6.d/K79unbound /etc/rc.d/rc6.d/K86unbound
# Apply local configuration to sshd_config
/usr/local/bin/sshctrl
# Start services
/etc/init.d/sshd restart
/etc/init.d/apache restart
# Update GeoIP
/usr/local/bin/xt_geoip_update
# Search sensors again after reboot into the new kernel
rm -f /etc/sysconfig/lm_sensors
# This update needs a reboot...
touch /var/run/need_reboot
# 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
# Finish
/etc/init.d/fireinfo start