]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core77: drop xen kernel support. core77
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 18 May 2014 12:39:16 +0000 (14:39 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 18 May 2014 12:56:57 +0000 (14:56 +0200)
The legacy xen kernel is incompatible to grsecurity and new udev so we are forced to drop the support. We have anounced this step 8 month ago.
http://planet.ipfire.org/post/dropping-support-for-xen-3-x-deprecation-warning

config/rootfiles/core/77/update.sh

index e9cf7700451c60663a3706753bfa601f0d76344e..9a4f78171552b0d79084d323947a15c2b677dbba 100644 (file)
@@ -44,20 +44,12 @@ done
 #
 # Do some sanity checks.
 case $(uname -r) in
-       *-ipfire-versatile )
+       *-ipfire-xen )
                /usr/bin/logger -p syslog.emerg -t ipfire \
-                       "core-update-${core}: ERROR cannot update. versatile support is dropped."
-               # Report no error to pakfire. So it does not try to install it again.
+                       "core-update-${core}: ERROR cannot update. legacy-xen support was dropped."
+                       echo "IPFire 2.13 (i586) - core 76 - xen-legacy (EOL) No support!" > /etc/system-release
                exit 0
                ;;
-       *-ipfire-xen )
-               BOOTSIZE=`df /boot -Pk | sed "s| * | |g" | cut -d" " -f2 | tail -n 1`
-               if [ $BOOTSIZE -lt 28000 ]; then
-                       /usr/bin/logger -p syslog.emerg -t ipfire \
-                               "core-update-${core}: ERROR cannot update because not enough space on boot."
-                       exit 2
-               fi
-               ;;
        *-ipfire* )
                # Ok.
                ;;
@@ -475,18 +467,6 @@ if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
        fi
 fi
 
-# Force reinstall xen kernel if it was installed
-if [ -e "/opt/pakfire/db/installed/meta-linux-xen" ]; then
-       echo "Name: linux-xen" > /opt/pakfire/db/installed/meta-linux-xen
-       echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-xen
-       echo "Release: 0"     >> /opt/pakfire/db/installed/meta-linux-xen
-       echo "Name: linux-xen" > /opt/pakfire/db/meta/meta-linux-xen
-       echo "ProgVersion: 0" >> /opt/pakfire/db/meta/meta-linux-xen
-       echo "Release: 0"     >> /opt/pakfire/db/meta/meta-linux-xen
-       # Add xvc0 to /etc/securetty
-       echo "xvc0" >> /etc/securetty
-fi
-
 #
 # After pakfire has ended run it again and update the lists and do upgrade
 #