mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
core142: move 140/141 file to oldcore
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
28
config/rootfiles/oldcore/140/exclude
Normal file
28
config/rootfiles/oldcore/140/exclude
Normal 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
|
||||
1
config/rootfiles/oldcore/140/filelists/files
Normal file
1
config/rootfiles/oldcore/140/filelists/files
Normal file
@@ -0,0 +1 @@
|
||||
usr/local/bin/filesystem-cleanup
|
||||
1
config/rootfiles/oldcore/140/meta
Normal file
1
config/rootfiles/oldcore/140/meta
Normal file
@@ -0,0 +1 @@
|
||||
DEPS=""
|
||||
86
config/rootfiles/oldcore/140/update.sh
Normal file
86
config/rootfiles/oldcore/140/update.sh
Normal 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
|
||||
28
config/rootfiles/oldcore/141/exclude
Normal file
28
config/rootfiles/oldcore/141/exclude
Normal 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
|
||||
1
config/rootfiles/oldcore/141/filelists/aarch64/efivar
Symbolic link
1
config/rootfiles/oldcore/141/filelists/aarch64/efivar
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/aarch64/efivar
|
||||
1
config/rootfiles/oldcore/141/filelists/aarch64/gcc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/aarch64/gcc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/aarch64/gcc
|
||||
1
config/rootfiles/oldcore/141/filelists/aarch64/glibc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/aarch64/glibc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/aarch64/glibc
|
||||
1
config/rootfiles/oldcore/141/filelists/aarch64/python3
Symbolic link
1
config/rootfiles/oldcore/141/filelists/aarch64/python3
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/python3
|
||||
1
config/rootfiles/oldcore/141/filelists/armv5tel/gcc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/armv5tel/gcc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/armv5tel/gcc
|
||||
1
config/rootfiles/oldcore/141/filelists/armv5tel/glibc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/armv5tel/glibc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/armv5tel/glibc
|
||||
1
config/rootfiles/oldcore/141/filelists/armv5tel/pyhton3
Symbolic link
1
config/rootfiles/oldcore/141/filelists/armv5tel/pyhton3
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/armv5tel/python3
|
||||
1
config/rootfiles/oldcore/141/filelists/bind
Symbolic link
1
config/rootfiles/oldcore/141/filelists/bind
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/bind
|
||||
1
config/rootfiles/oldcore/141/filelists/elinks
Symbolic link
1
config/rootfiles/oldcore/141/filelists/elinks
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/elinks
|
||||
1
config/rootfiles/oldcore/141/filelists/file
Symbolic link
1
config/rootfiles/oldcore/141/filelists/file
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/file
|
||||
38
config/rootfiles/oldcore/141/filelists/files
Normal file
38
config/rootfiles/oldcore/141/filelists/files
Normal 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
|
||||
1
config/rootfiles/oldcore/141/filelists/geoip-database
Symbolic link
1
config/rootfiles/oldcore/141/filelists/geoip-database
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/geoip-database
|
||||
1
config/rootfiles/oldcore/141/filelists/glib
Symbolic link
1
config/rootfiles/oldcore/141/filelists/glib
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/glib
|
||||
1
config/rootfiles/oldcore/141/filelists/i586/gcc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/i586/gcc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/i586/gcc
|
||||
1
config/rootfiles/oldcore/141/filelists/i586/glibc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/i586/glibc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/i586/glibc
|
||||
1
config/rootfiles/oldcore/141/filelists/i586/python3
Symbolic link
1
config/rootfiles/oldcore/141/filelists/i586/python3
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/i586/python3
|
||||
1
config/rootfiles/oldcore/141/filelists/knot
Symbolic link
1
config/rootfiles/oldcore/141/filelists/knot
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/knot
|
||||
1
config/rootfiles/oldcore/141/filelists/libhtp
Symbolic link
1
config/rootfiles/oldcore/141/filelists/libhtp
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/libhtp
|
||||
1
config/rootfiles/oldcore/141/filelists/libmpc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/libmpc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/libmpc
|
||||
1
config/rootfiles/oldcore/141/filelists/lvm2
Symbolic link
1
config/rootfiles/oldcore/141/filelists/lvm2
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/lvm2
|
||||
1
config/rootfiles/oldcore/141/filelists/mdadm
Symbolic link
1
config/rootfiles/oldcore/141/filelists/mdadm
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/mdadm
|
||||
1
config/rootfiles/oldcore/141/filelists/mpfr
Symbolic link
1
config/rootfiles/oldcore/141/filelists/mpfr
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/mpfr
|
||||
1
config/rootfiles/oldcore/141/filelists/suricata
Symbolic link
1
config/rootfiles/oldcore/141/filelists/suricata
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/suricata
|
||||
1
config/rootfiles/oldcore/141/filelists/unbound
Symbolic link
1
config/rootfiles/oldcore/141/filelists/unbound
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/unbound
|
||||
1
config/rootfiles/oldcore/141/filelists/x86_64/efivar
Symbolic link
1
config/rootfiles/oldcore/141/filelists/x86_64/efivar
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/x86_64/efivar
|
||||
1
config/rootfiles/oldcore/141/filelists/x86_64/gcc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/x86_64/gcc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/x86_64/gcc
|
||||
1
config/rootfiles/oldcore/141/filelists/x86_64/glibc
Symbolic link
1
config/rootfiles/oldcore/141/filelists/x86_64/glibc
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/x86_64/glibc
|
||||
1
config/rootfiles/oldcore/141/filelists/x86_64/python3
Symbolic link
1
config/rootfiles/oldcore/141/filelists/x86_64/python3
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/python3
|
||||
1
config/rootfiles/oldcore/141/meta
Normal file
1
config/rootfiles/oldcore/141/meta
Normal file
@@ -0,0 +1 @@
|
||||
DEPS=""
|
||||
111
config/rootfiles/oldcore/141/update.sh
Normal file
111
config/rootfiles/oldcore/141/update.sh
Normal 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
|
||||
Reference in New Issue
Block a user