core142: move 140/141 file to oldcore

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2020-02-08 10:12:38 +01:00
parent 03d651483b
commit 975f78f710
35 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
boot/config.txt
boot/grub/grub.cfg
boot/grub/grubenv
etc/alternatives
etc/collectd.custom
etc/default/grub
etc/ipsec.conf
etc/ipsec.secrets
etc/ipsec.user.conf
etc/ipsec.user.secrets
etc/localtime
etc/shadow
etc/snort/snort.conf
etc/ssl/openssl.cnf
etc/sudoers
etc/sysconfig/firewall.local
etc/sysconfig/rc.local
etc/udev/rules.d/30-persistent-network.rules
srv/web/ipfire/html/proxy.pac
var/ipfire/dma
var/ipfire/time
var/ipfire/ovpn
var/lib/alternatives
var/log/cache
var/log/dhcpcd.log
var/log/messages
var/state/dhcp/dhcpd.leases
var/updatecache

View File

@@ -0,0 +1 @@
usr/local/bin/filesystem-cleanup

View File

@@ -0,0 +1 @@
DEPS=""

View File

@@ -0,0 +1,86 @@
#!/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 3 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) 2020 IPFire-Team <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
core=140
exit_with_error() {
# Set last succesfull installed core.
echo $(($core-1)) > /opt/pakfire/db/core/mine
# don't start pakfire again at error
killall -KILL pak_update
/usr/bin/logger -p syslog.emerg -t ipfire \
"core-update-${core}: $1"
exit $2
}
# Remove old core updates from pakfire cache to save space...
for (( i=1; i<=$core; i++ )); do
rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
done
# Remove files
rm -rf /usr/lib/libboost*1.55.0
rm -rf /usr/lib/mysql
rm -rf /usr/lib/pppd/2.4.4
rm -rf /usr/lib/pppd/2.4.5
rm -rf /usr/lib/pppd/2.4.6
rm -rf /usr/local/share/GeoIP
rm -rf /usr/share/mysql
rm -rf /usr/share/vim7*
# Stop services
# Extract files
extract_files
# update linker config
# ldconfig
# run filesystem cleanup
/usr/local/bin/filesystem-cleanup
# Update Language cache
#/usr/local/bin/update-lang-cache
# Start services
# This update needs a reboot...
#touch /var/run/need_reboot
# Finish
/etc/init.d/fireinfo start
sendprofile
# Update grub config to display new core version
if [ -e /boot/grub/grub.cfg ]; then
grub-mkconfig -o /boot/grub/grub.cfg
fi
sync
# Don't report the exitcode last command
exit 0

View File

@@ -0,0 +1,28 @@
boot/config.txt
boot/grub/grub.cfg
boot/grub/grubenv
etc/alternatives
etc/collectd.custom
etc/default/grub
etc/ipsec.conf
etc/ipsec.secrets
etc/ipsec.user.conf
etc/ipsec.user.secrets
etc/localtime
etc/shadow
etc/snort/snort.conf
etc/ssl/openssl.cnf
etc/sudoers
etc/sysconfig/firewall.local
etc/sysconfig/rc.local
etc/udev/rules.d/30-persistent-network.rules
srv/web/ipfire/html/proxy.pac
var/ipfire/dma
var/ipfire/time
var/ipfire/ovpn
var/lib/alternatives
var/log/cache
var/log/dhcpcd.log
var/log/messages
var/state/dhcp/dhcpd.leases
var/updatecache

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,38 @@
etc/system-release
etc/issue
srv/web/ipfire/cgi-bin/credits.cgi
var/ipfire/langs
etc/rc.d/helper/aws-setup
etc/rc.d/helper/azure-setup
etc/rc.d/init.d/lvmetad
etc/rc.d/init.d/networking/dhcpcd.exe
etc/rc.d/init.d/networking/red
etc/rc.d/init.d/networking/red.up/05-update-dns-forwarders
etc/rc.d/init.d/partresize
etc/rc.d/init.d/suricata
etc/rc.d/init.d/unbound
etc/rc.d/rcsysinit.d/S09lvmetad
etc/ppp/ip-down
etc/ppp/ip-up
etc/unbound/unbound.conf
opt/pakfire/etc/pakfire.conf
opt/pakfire/lib/functions.pl
srv/web/ipfire/cgi-bin/dns.cgi
srv/web/ipfire/cgi-bin/dnsforward.cgi
srv/web/ipfire/cgi-bin/gui.cgi
srv/web/ipfire/cgi-bin/hosts.cgi
srv/web/ipfire/cgi-bin/ids.cgi
srv/web/ipfire/cgi-bin/index.cgi
srv/web/ipfire/cgi-bin/netexternal.cgi
srv/web/ipfire/cgi-bin/pppsetup.cgi
srv/web/ipfire/cgi-bin/vpnmain.cgi
usr/local/bin/backupiso
usr/local/bin/convert-dns-settings
usr/local/bin/unboundctrl
usr/sbin/convert-snort
usr/sbin/setup
usr/sbin/unbound-dhcp-leases-bridge
var/ipfire/backup/bin/backup.pl
var/ipfire/ids-functions.pl
var/ipfire/menu.d/30-network.menu
var/ipfire/general-functions.pl

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1 @@
DEPS=""

View File

@@ -0,0 +1,111 @@
#!/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 3 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) 2020 IPFire-Team <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
core=141
exit_with_error() {
# Set last succesfull installed core.
echo $(($core-1)) > /opt/pakfire/db/core/mine
# force fsck at next boot, this may fix free space on xfs
touch /forcefsck
# don't start pakfire again at error
killall -KILL pak_update
/usr/bin/logger -p syslog.emerg -t ipfire \
"core-update-${core}: $1"
exit $2
}
# Remove old core updates from pakfire cache to save space...
for (( i=1; i<=$core; i++ )); do
rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
done
# Check diskspace on root
ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
if [ $ROOTSPACE -lt 180000 ]; then
exit_with_error "ERROR cannot update because not enough free space on root." 2
fi
# Remove files
rm -f /etc/rc.d/init.d/networking/red.up/06-safe-search
rm -rf /usr/lib/go/8.3.0
# Stop services
# Extract files
extract_files
# update linker config
ldconfig
# restart init after glibc replace
telinit u
# Update Language cache
/usr/local/bin/update-lang-cache
# Update Language cache
/usr/local/bin/filesystem-cleanup
# Convert DNS settings
/usr/local/bin/convert-dns-settings
# move nobeeps if exist
[ -e "/var/ipfire/ppp/nobeeps" ] && mv /var/ipfire/ppp/nobeeps /var/ipfire/red/nobeeps
# Start services
/etc/init.d/unbound restart
# This update needs a reboot...
touch /var/run/need_reboot
# Force pakfire to redownload lists
rm -f /opt/pakfire/db/lists/*.db
# Let pakfire forget the elinks and python3 package
rm -fv /opt/pakfire/db/rootfiles/elinks
rm -fv /opt/pakfire/db/*/meta-elinks
rm -fv /opt/pakfire/db/rootfiles/python3
rm -fv /opt/pakfire/db/*/meta-python3
# run pakfire update twice (first sometimes fail)
/usr/local/bin/pakfire update
/usr/local/bin/pakfire update
# Finish
/etc/init.d/fireinfo start
sendprofile
# Update grub config to display new core version
if [ -e /boot/grub/grub.cfg ]; then
grub-mkconfig -o /boot/grub/grub.cfg
fi
sync
# Don't report the exitcode last command
exit 0