From 2c0f30c29b4b70a45ba01a0c32ae31ac7f75625b Mon Sep 17 00:00:00 2001 From: kartofen Date: Wed, 26 Apr 2023 23:29:14 +0300 Subject: learning about modules --- vm.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vm.sh') 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 } -- cgit v1.2.3