From b0768026fe3b8de9afc35d95c8958fb61233bfd5 Mon Sep 17 00:00:00 2001 From: Mario Preksavec Date: Sat, 14 Aug 2021 22:19:14 +0200 Subject: system/xen: Updated for version 4.15.0. Signed-off-by: Mario Preksavec Signed-off-by: Willy Sudiarto Raharjo --- system/xen/dom0/kernel-xen.sh | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'system/xen/dom0/kernel-xen.sh') diff --git a/system/xen/dom0/kernel-xen.sh b/system/xen/dom0/kernel-xen.sh index ce4c95e783ad1..e36770798bf61 100644 --- a/system/xen/dom0/kernel-xen.sh +++ b/system/xen/dom0/kernel-xen.sh @@ -5,9 +5,8 @@ # Written by Chris Abela , 20100515 # Modified by Mario Preksavec -KERNEL=${KERNEL:-4.4.240} -XEN=${XEN:-4.13.1} -BOOTLOADER=${BOOTLOADER:-lilo} +KERNEL=${KERNEL:-5.13.8} +XEN=${XEN:-4.15.0} ROOTMOD=${ROOTMOD:-ext4} ROOTFS=${ROOTFS:-ext4} @@ -15,18 +14,11 @@ ROOTDEV=${ROOTDEV:-/dev/sda2} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i686 ;; x86_64) ARCH=x86_64 ;; *) echo "Unsupported architecture detected ($ARCH)"; exit ;; esac fi -if [ "$BOOTLOADER" = lilo ] && [ ! -x /usr/bin/mbootpack ]; then - echo "LILO bootloader requires mbootpack." - echo "Get it from slackbuilds.org and rerun this script." - exit -fi - if [ ! -d /usr/src/linux-$KERNEL ]; then echo "Missing kernel source in /usr/src/linux-$KERNEL" echo "Get it from kernel.org and rerun this script." @@ -78,15 +70,7 @@ cp -a $TMP/lib/modules/$KERNEL-xen /lib/modules mkinitrd -c -k $KERNEL-xen -m $ROOTMOD -f $ROOTFS -r $ROOTDEV \ -o /boot/initrd-$KERNEL-xen.gz -# For lilo we use mbootpack -if [ "$BOOTLOADER" = lilo ]; then - gzip -d -c /boot/xen-$XEN.gz > xen-$XEN - mbootpack -m arch/x86/boot/bzImage -m /boot/initrd-$KERNEL-xen.gz xen-$XEN \ - -o /boot/vmlinuz-$KERNEL-xen -else - cp arch/x86/boot/bzImage /boot/vmlinuz-$KERNEL-xen -fi - +cp arch/x86/boot/bzImage /boot/vmlinuz-$KERNEL-xen cp System.map /boot/System.map-$KERNEL-xen cp .config /boot/config-$KERNEL-xen -- cgit v1.2.3