diff options
Diffstat (limited to 'vm.sh')
-rwxr-xr-x | vm.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 } |