aboutsummaryrefslogtreecommitdiff
path: root/vm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vm.sh')
-rwxr-xr-xvm.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm.sh b/vm.sh
index f77642f..69b9bb5 100755
--- a/vm.sh
+++ b/vm.sh
@@ -2,7 +2,7 @@
function run
{
- qemu-system-x86_64 \
+ st qemu-system-x86_64 \
-kernel "$BIND/$KERNEL_NAME" \
-initrd "$BIND/$INITFS_NAME" \
-append "console=ttyS0" -nographic
@@ -12,12 +12,15 @@ function initramfs
{
IMG="$(pwd)/$1"
DIR="${IMG%.*}"
+
mkdir -p $DIR
# get busybox things
install -D $(which busybox) $DIR/bin/busybox
ln -sf busybox $DIR/bin/sh
ln -sf busybox $DIR/bin/dmesg
+ ln -sf busybox $DIR/bin/mount
+ # ln -sf busybox $DIR/bin/bash
# copy the compiled binaries
mkdir -p $DIR/usr/bin
@@ -29,7 +32,6 @@ function initramfs
# make image and delete folder
(cd $DIR; find . | cpio -H newc -o | gzip > $IMG)
-
rm -rf $DIR
}