]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
rename core138 -> core139 to insert a emergency core update
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 14 Nov 2019 17:28:38 +0000 (17:28 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 14 Nov 2019 17:34:03 +0000 (17:34 +0000)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
46 files changed:
config/rootfiles/core/137/filelists/IO-Socket-SSL [deleted symlink]
config/rootfiles/core/137/filelists/Net_SSLeay [deleted symlink]
config/rootfiles/core/137/filelists/aarch64/linux [deleted symlink]
config/rootfiles/core/137/filelists/aarch64/linux-initrd [deleted symlink]
config/rootfiles/core/137/filelists/armv5tel/linux-initrd-kirkwood [deleted symlink]
config/rootfiles/core/137/filelists/armv5tel/linux-initrd-multi [deleted symlink]
config/rootfiles/core/137/filelists/armv5tel/linux-kirkwood [deleted symlink]
config/rootfiles/core/137/filelists/armv5tel/linux-multi [deleted symlink]
config/rootfiles/core/137/filelists/bind [deleted symlink]
config/rootfiles/core/137/filelists/collectd [deleted symlink]
config/rootfiles/core/137/filelists/dhcpcd [deleted symlink]
config/rootfiles/core/137/filelists/files [deleted file]
config/rootfiles/core/137/filelists/i586/linux [deleted symlink]
config/rootfiles/core/137/filelists/i586/linux-initrd [deleted symlink]
config/rootfiles/core/137/filelists/iproute2 [deleted symlink]
config/rootfiles/core/137/filelists/ipset [deleted symlink]
config/rootfiles/core/137/filelists/iptables [deleted symlink]
config/rootfiles/core/137/filelists/knot [deleted symlink]
config/rootfiles/core/137/filelists/libhtp [deleted symlink]
config/rootfiles/core/137/filelists/libnetfilter_queue [deleted symlink]
config/rootfiles/core/137/filelists/libpcap [deleted symlink]
config/rootfiles/core/137/filelists/libssh [deleted symlink]
config/rootfiles/core/137/filelists/pcre [deleted symlink]
config/rootfiles/core/137/filelists/strongswan [deleted symlink]
config/rootfiles/core/137/filelists/suricata [deleted symlink]
config/rootfiles/core/137/filelists/tzdata [deleted symlink]
config/rootfiles/core/137/filelists/unbound [deleted symlink]
config/rootfiles/core/137/filelists/wpa_supplicant [deleted symlink]
config/rootfiles/core/137/filelists/x86_64/linux [deleted symlink]
config/rootfiles/core/137/filelists/x86_64/linux-initrd [deleted symlink]
config/rootfiles/core/139/exclude [moved from config/rootfiles/core/137/exclude with 100% similarity]
config/rootfiles/core/139/filelists/bash [new symlink]
config/rootfiles/core/139/filelists/ca-certificates [new symlink]
config/rootfiles/core/139/filelists/ddns [new symlink]
config/rootfiles/core/139/filelists/files [new file with mode: 0644]
config/rootfiles/core/139/filelists/i586/intel-microcode [new symlink]
config/rootfiles/core/139/filelists/i586/openssl-sse2 [new symlink]
config/rootfiles/core/139/filelists/logwatch [new symlink]
config/rootfiles/core/139/filelists/lz4 [new symlink]
config/rootfiles/core/139/filelists/openssl [new symlink]
config/rootfiles/core/139/filelists/openvpn [new symlink]
config/rootfiles/core/139/filelists/readline [new symlink]
config/rootfiles/core/139/filelists/readline-compat [new symlink]
config/rootfiles/core/139/filelists/squid [new symlink]
config/rootfiles/core/139/filelists/x86_64/intel-microcode [new symlink]
config/rootfiles/core/139/update.sh [moved from config/rootfiles/core/137/update.sh with 51% similarity]

diff --git a/config/rootfiles/core/137/filelists/IO-Socket-SSL b/config/rootfiles/core/137/filelists/IO-Socket-SSL
deleted file mode 120000 (symlink)
index d244923..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/IO-Socket-SSL
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/Net_SSLeay b/config/rootfiles/core/137/filelists/Net_SSLeay
deleted file mode 120000 (symlink)
index 13fe056..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/Net_SSLeay
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/aarch64/linux b/config/rootfiles/core/137/filelists/aarch64/linux
deleted file mode 120000 (symlink)
index 3a2532b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/aarch64/linux
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/aarch64/linux-initrd b/config/rootfiles/core/137/filelists/aarch64/linux-initrd
deleted file mode 120000 (symlink)
index 8acdb0f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/aarch64/linux-initrd
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/armv5tel/linux-initrd-kirkwood b/config/rootfiles/core/137/filelists/armv5tel/linux-initrd-kirkwood
deleted file mode 120000 (symlink)
index 39c5591..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/armv5tel/linux-initrd-kirkwood
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/armv5tel/linux-initrd-multi b/config/rootfiles/core/137/filelists/armv5tel/linux-initrd-multi
deleted file mode 120000 (symlink)
index 0b1b453..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/armv5tel/linux-initrd-multi
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/armv5tel/linux-kirkwood b/config/rootfiles/core/137/filelists/armv5tel/linux-kirkwood
deleted file mode 120000 (symlink)
index 7217107..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/armv5tel/linux-kirkwood
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/armv5tel/linux-multi b/config/rootfiles/core/137/filelists/armv5tel/linux-multi
deleted file mode 120000 (symlink)
index 204eb4c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/armv5tel/linux-multi
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/bind b/config/rootfiles/core/137/filelists/bind
deleted file mode 120000 (symlink)
index 48a0eba..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/bind
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/collectd b/config/rootfiles/core/137/filelists/collectd
deleted file mode 120000 (symlink)
index 871b32f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/collectd
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/dhcpcd b/config/rootfiles/core/137/filelists/dhcpcd
deleted file mode 120000 (symlink)
index 1e799da..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/dhcpcd
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/files b/config/rootfiles/core/137/filelists/files
deleted file mode 100644 (file)
index 3b7c8d2..0000000
+++ /dev/null
@@ -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
diff --git a/config/rootfiles/core/137/filelists/i586/linux b/config/rootfiles/core/137/filelists/i586/linux
deleted file mode 120000 (symlink)
index 693ec4b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/i586/linux
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/i586/linux-initrd b/config/rootfiles/core/137/filelists/i586/linux-initrd
deleted file mode 120000 (symlink)
index 32a03e6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/i586/linux-initrd
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/iproute2 b/config/rootfiles/core/137/filelists/iproute2
deleted file mode 120000 (symlink)
index 05f0f71..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/iproute2
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/ipset b/config/rootfiles/core/137/filelists/ipset
deleted file mode 120000 (symlink)
index 2b43691..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/ipset
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/iptables b/config/rootfiles/core/137/filelists/iptables
deleted file mode 120000 (symlink)
index 8caf12b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/iptables
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/knot b/config/rootfiles/core/137/filelists/knot
deleted file mode 120000 (symlink)
index 28e96f8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/knot
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/libhtp b/config/rootfiles/core/137/filelists/libhtp
deleted file mode 120000 (symlink)
index 676e2c5..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/libhtp
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/libnetfilter_queue b/config/rootfiles/core/137/filelists/libnetfilter_queue
deleted file mode 120000 (symlink)
index 9344b04..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/libnetfilter_queue
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/libpcap b/config/rootfiles/core/137/filelists/libpcap
deleted file mode 120000 (symlink)
index c7f9f52..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/libpcap
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/libssh b/config/rootfiles/core/137/filelists/libssh
deleted file mode 120000 (symlink)
index ecbb670..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/libssh
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/pcre b/config/rootfiles/core/137/filelists/pcre
deleted file mode 120000 (symlink)
index b390d9a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/pcre
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/strongswan b/config/rootfiles/core/137/filelists/strongswan
deleted file mode 120000 (symlink)
index 90c727e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/strongswan
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/suricata b/config/rootfiles/core/137/filelists/suricata
deleted file mode 120000 (symlink)
index f671f69..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/suricata
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/tzdata b/config/rootfiles/core/137/filelists/tzdata
deleted file mode 120000 (symlink)
index 5a6e325..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/tzdata
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/unbound b/config/rootfiles/core/137/filelists/unbound
deleted file mode 120000 (symlink)
index 66adf09..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/unbound
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/wpa_supplicant b/config/rootfiles/core/137/filelists/wpa_supplicant
deleted file mode 120000 (symlink)
index 1d04c03..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/wpa_supplicant
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/x86_64/linux b/config/rootfiles/core/137/filelists/x86_64/linux
deleted file mode 120000 (symlink)
index 0615b5b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/x86_64/linux
\ No newline at end of file
diff --git a/config/rootfiles/core/137/filelists/x86_64/linux-initrd b/config/rootfiles/core/137/filelists/x86_64/linux-initrd
deleted file mode 120000 (symlink)
index 1b9fff7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../../common/x86_64/linux-initrd
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/bash b/config/rootfiles/core/139/filelists/bash
new file mode 120000 (symlink)
index 0000000..de970cb
--- /dev/null
@@ -0,0 +1 @@
+../../../common/bash
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/ca-certificates b/config/rootfiles/core/139/filelists/ca-certificates
new file mode 120000 (symlink)
index 0000000..320fea8
--- /dev/null
@@ -0,0 +1 @@
+../../../common/ca-certificates
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/ddns b/config/rootfiles/core/139/filelists/ddns
new file mode 120000 (symlink)
index 0000000..7395164
--- /dev/null
@@ -0,0 +1 @@
+../../../common/ddns
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/files b/config/rootfiles/core/139/filelists/files
new file mode 100644 (file)
index 0000000..d22fb83
--- /dev/null
@@ -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
diff --git a/config/rootfiles/core/139/filelists/i586/intel-microcode b/config/rootfiles/core/139/filelists/i586/intel-microcode
new file mode 120000 (symlink)
index 0000000..f03e847
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/i586/intel-microcode
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/i586/openssl-sse2 b/config/rootfiles/core/139/filelists/i586/openssl-sse2
new file mode 120000 (symlink)
index 0000000..f424713
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/i586/openssl-sse2
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/logwatch b/config/rootfiles/core/139/filelists/logwatch
new file mode 120000 (symlink)
index 0000000..f14eabd
--- /dev/null
@@ -0,0 +1 @@
+../../../common/logwatch
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/lz4 b/config/rootfiles/core/139/filelists/lz4
new file mode 120000 (symlink)
index 0000000..65c3180
--- /dev/null
@@ -0,0 +1 @@
+../../../common/lz4
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/openssl b/config/rootfiles/core/139/filelists/openssl
new file mode 120000 (symlink)
index 0000000..e011a92
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssl
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/openvpn b/config/rootfiles/core/139/filelists/openvpn
new file mode 120000 (symlink)
index 0000000..493f3f7
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openvpn
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/readline b/config/rootfiles/core/139/filelists/readline
new file mode 120000 (symlink)
index 0000000..84209f1
--- /dev/null
@@ -0,0 +1 @@
+../../../common/readline
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/readline-compat b/config/rootfiles/core/139/filelists/readline-compat
new file mode 120000 (symlink)
index 0000000..f96bc80
--- /dev/null
@@ -0,0 +1 @@
+../../../common/readline-compat
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/squid b/config/rootfiles/core/139/filelists/squid
new file mode 120000 (symlink)
index 0000000..2dc8372
--- /dev/null
@@ -0,0 +1 @@
+../../../common/squid
\ No newline at end of file
diff --git a/config/rootfiles/core/139/filelists/x86_64/intel-microcode b/config/rootfiles/core/139/filelists/x86_64/intel-microcode
new file mode 120000 (symlink)
index 0000000..d5ac074
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/x86_64/intel-microcode
\ No newline at end of file
similarity index 51%
rename from config/rootfiles/core/137/update.sh
rename to config/rootfiles/core/139/update.sh
index f2e83fc77cc1d82437fb3e3b836356288fb8c25e..fb3105aa03f9e744aa8d89345936bd7afdfa4e0c 100644 (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