summaryrefslogtreecommitdiff
path: root/system/xen/domU/domU.sh
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-04-01 12:59:29 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-04-03 09:59:46 -0500
commit45f4ef13359d81a3440a7cf5a3dccc5484947bb9 (patch)
treeab67e4245789c97de5aa9422a8bb90710ff5095e /system/xen/domU/domU.sh
parent7558578e5bd3b315abdbf55ffb31a7dec89a0bca (diff)
downloadslackbuilds-45f4ef13359d81a3440a7cf5a3dccc5484947bb9.tar.gz
system/xen: Removed (needs update)
This will be updated by the maintainer after 13.37 releases, but he's not done with the needed changes yet... Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/xen/domU/domU.sh')
-rw-r--r--system/xen/domU/domU.sh76
1 files changed, 0 insertions, 76 deletions
diff --git a/system/xen/domU/domU.sh b/system/xen/domU/domU.sh
deleted file mode 100644
index d9b2792917..0000000000
--- a/system/xen/domU/domU.sh
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# This Script builds a Slackware domU Xen Guest on a Slackware host,
-# Although it might work correctly, this script is intended as a template, so
-# simplicity is the priority here.
-# Chris Abela <chris.abela@maltats.com>
-# 20100308
-# Updated by mario <mario@slackverse.org>
-# 20100904
-
-set -e
-
-# Build an image for the root file system and another for the swap
-# Default values : 8GB and 500MB resepectively.
-ROOT_MB=${ROOT_MB:-8000}
-SWAP_MB=${SWAP_MB:-500}
-dd if=/dev/zero of=slackware.img bs=1M count=0 seek=$ROOT_MB
-mkfs.ext4 -F slackware.img
-dd if=/dev/zero of=swap_file bs=1M count=0 seek=$SWAP_MB
-mkswap swap_file
-
-# Make a mountpoint for the root file system and mount it
-mkdir -p mnt
-mount -o loop slackware.img mnt
-
-# Make a mountpoint for proc and mount it
-mkdir -p mnt/proc
-mount --bind /proc mnt/proc
-
-##############################################################################
-# #
-# IMPORTANT : This assumes that you have mounted your Slackware DVD on #
-# /media/SlackDVD #
-# #
-##############################################################################
-
-# This will install a "Server" with the listed packages
-for i in a ap d e f k l n t tcl; do
- installpkg --root mnt/ /media/SlackDVD/slackware*/$i/*.t?z
-done
-chroot mnt /sbin/ldconfig
-
-# create fstab
-cat >mnt/etc/fstab <<EOF
-/dev/xvda2 swap swap defaults 0 0
-/dev/xvda1 / ext4 defaults 1 1
-#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
-/dev/fd0 /mnt/floppy auto noauto,owner 0 0
-devpts /dev/pts devpts gid=5,mode=620 0 0
-proc /proc proc defaults 0 0
-tmpfs /dev/shm tmpfs defaults 0 0
-EOF
-
-chroot mnt /usr/sbin/timeconfig # Set the time
-chroot mnt /sbin/netconfig # Set the network
-chroot mnt /usr/bin/passwd # Set root's password
-
-# Before we could use xencons=tty and leave inittab and securetty files intact,
-# but that stopped working with new xen, so we fix it by adding hvc0.
-sed 's/^\(c[1-6]:123\)/#\1/' /etc/inittab
-echo -e '\nc1:1235:respawn:/sbin/agetty 38400 hvc0 linux' >> /etc/inittab
-echo -e '\nhvc0' >> /etc/securetty
-
-# This will save us an alarming (yet harmless) warning
-(cd mnt/lib/modules
- if [ -d 2.6.33.4-smp ] ;then
- # for Slack32
- ln -s 2.6.33.4-smp 2.6.33.4-xen
- else
- # for Slack64
- ln -s 2.6.33.4 2.6.33.4-xen
- fi
-)
-
-# unmount proc and the filesystem
-umount mnt/proc
-umount mnt