summaryrefslogtreecommitdiff
path: root/system/xen/dom0/kernel-xen.sh
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-10-07 16:46:02 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-10-07 16:46:02 -0500
commit479449eb45f12ba4579040214eba596cb84b9122 (patch)
tree731e37bc4dc5515a256165df2dfb4b45bcfbaeaa /system/xen/dom0/kernel-xen.sh
parent90dde055a6309c6b5d8c08830a2b461c0aab137e (diff)
downloadslackbuilds-479449eb45f12ba4579040214eba596cb84b9122.tar.gz
Revert "system/xen: Added (updated to version 4.2.0 from 13.37 repo)"
This reverts commit 66e00ebfd7c72e830fe29536604a045d8b3fb4ca. The branch containing this commit was not intended for merging, as it was not deemed ready by the xen SBo maintainer (mario). Apologies to mario for the oversight - I should have named this branch differently so that its meaning was clear :/ Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/xen/dom0/kernel-xen.sh')
-rw-r--r--system/xen/dom0/kernel-xen.sh109
1 files changed, 0 insertions, 109 deletions
diff --git a/system/xen/dom0/kernel-xen.sh b/system/xen/dom0/kernel-xen.sh
deleted file mode 100644
index 6f23cb8e27..0000000000
--- a/system/xen/dom0/kernel-xen.sh
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/bin/sh
-
-# Xem dom0 kernel installation script
-
-# Written by Chris Abela <chris.abela@maltats.com>, 20100515
-# Updated by mario <mario@slackverse.org>, 2010-2012
-
-KERNEL=${KERNEL:-3.2.29}
-XEN=${XEN:-4.2.0}
-BOOTLOADER=${BOOTLOADER:-lilo}
-
-ROOTMOD=${ROOTMOD:-ext4}
-ROOTFS=${ROOTFS:-ext4}
-ROOTDEV=${ROOTDEV:-/dev/sda1}
-
-# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- x86_64) ARCH=x86_64 ;;
- # Bail out on everything else:
- *) 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
-
-CWD=$(pwd)
-TMP=${TMP:-/tmp/xen}
-
-set -e
-
-rm -rf $TMP
-mkdir -p $TMP
-
-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."
- exit
-fi
-
-# Prepare kernel source
-cd /usr/src
-cp -a linux-$KERNEL linux-$KERNEL-xen
-ln -s linux-$KERNEL-xen xenlinux
-
-cd linux-$KERNEL-xen
-make clean
-
-# Copy the right config
-cat $CWD/config-$KERNEL-xen.$ARCH > .config
-
-# If the user wants, we will run menuconfig
-if [ "$MENUCONFIG" = yes ]; then
- unset junk
- make menuconfig
- while [ "$junk" != N ]; do
- echo
- echo "Do you want to run"
- echo "# make menuconfig"
- echo -n "again? (Y/N) "
- read junk
- if [ "$junk" = Y ]; then
- make menuconfig
- fi
- done
-fi
-
-make vmlinux modules
-make modules_install INSTALL_MOD_PATH=$TMP
-
-# Install modules
-cp -a $TMP/lib/modules/$KERNEL-xen /lib/modules
-
-# Strip kernel symbols
-strip vmlinux -o vmlinux-stripped
-
-# Create initrd
-mkinitrd -c -k $KERNEL-xen -m $ROOTMOD -f $ROOTFS -r $ROOTDEV -o /boot/initrd-$KERNEL-xen.gz
-
-# For lilo we pack kernel up with mbootpack
-if [ "$BOOTLOADER" = lilo ]; then
- gzip -d -c /boot/xen-$XEN.gz > xen-$XEN
- gzip -d -c /boot/initrd-$KERNEL-xen.gz > initrd-$KERNEL-xen
- mbootpack -o vmlinux-stripped-mboot -m vmlinux-stripped -m initrd-$KERNEL-xen xen-$XEN
-# For lilo we need to keep kernel unpacked
- cp -a vmlinux-stripped-mboot vmlinuz
-elif [ "$BOOTLOADER" = grub ]; then
- gzip vmlinux-stripped -c > vmlinuz
-fi
-
-install -D -m 644 vmlinuz /boot/vmlinuz-$KERNEL-xen
-install -m 644 System.map /boot/System.map-$KERNEL-xen
-install -m 644 .config /boot/config-$KERNEL-xen
-
-cd /boot
-ln -s vmlinuz-$KERNEL-xen vmlinuz-xen
-ln -s System.map-$KERNEL-xen System.map-xen
-ln -s config-$KERNEL-xen config-xen
-ln -s initrd-$KERNEL-xen.gz initrd-xen.gz
-
-# Clean up kernel sources
-cd /usr/src/linux-$KERNEL-xen
-make clean
-rm initrd-$KERNEL-xen vmlinux-stripped* vmlinuz xen-$XEN