--- /dev/null
+#!/bin/zsh
+
+. /etc/grml/autoconfig.functions
+
+STATUS=$(getbootparam status)
+sfdisk /dev/sda <<EOF
+1
+;
+EOF
+
+sed -i "s#^PARTITION=.*#PARTITION=/dev/sda1#" /etc/grml2hd/config
+sed -i "s#^BOOT_PARTITION=.*#BOOT_PARTITION=/dev/sda#" /etc/grml2hd/config
+echo 'BOOT_MANAGER="grub"' >> /etc/grml2hd/config
+echo 'BOOT_APPEND="'netscript=$STATUS/DONE'"' >> /etc/grml2hd/config
+echo "GRML2HD_FINALIZE='no'" >> /etc/grml2hd/customization
+GRML2HD_NONINTERACTIVE='yes' grml2hd
+shutdown -h now
--- /dev/null
+CMDLINE="$CMDLINE_COMMON noprompt netscript=$URL_PREFIX:$COMMON_PORT/$NAME/deploy.sh status=$URL_PREFIX:$STATUS_PORT/ common=$URL_PREFIX:$COMMON_PORT/common.sh"
+IMAGE=$(tempfile)
+KVM_PARAMS="-hda $IMAGE"
+TIMEOUT_TIME=300
+TEST_NAME=grml2hd-$NAME
+BAILOUT_CMD='rm -f $IMAGE ; kill -9 $TEST_PID $PARENT 2>/dev/null'
+
+# create sample image file
+dd if=/dev/zero of=$IMAGE bs=1024 count=2120000 2>/dev/null
+
+# run the test (will create a bootable device
+run_test
+timeout
+wait $KVM_PID
+
+# start second kvm
+kvm -vnc :0 -hda $IMAGE &
+TEST_PID=$!
+
+
+wait $SERVER_PID
+kill -9 $TEST_PID
+rm -f $IMAGE
--- /dev/null
+#!/bin/zsh
+
+. /etc/grml/autoconfig.functions
+
+STATUS=$(getbootparam status)
+COMMON_SRC=$(getbootparam common)
+
+echo 'BOOT_MANAGER="grub"' >> /etc/grml2hd/config
+
+wget $COMMON_SRC -O /tmp/common.sh
+chmod +x /tmp/common.sh
+/tmp/common.sh
--- /dev/null
+#!/bin/sh
+
+. $FRAMEWORK
+
+NAME=grub
+. ./grml2hd-common
--- /dev/null
+#!/bin/zsh
+
+. /etc/grml/autoconfig.functions
+
+COMMON_SRC=$(getbootparam common)
+
+wget $COMMON_SRC -O /tmp/common.sh
+chmod +x /tmp/common.sh
+/tmp/common.sh
--- /dev/null
+#!/bin/sh
+
+. $FRAMEWORK
+
+NAME=grub
+. ./grml2hd-common
+
--- /dev/null
+#!/bin/sh
+
+for i in grub lilo ; do
+ PARENT=$$ $i/runit.sh
+done