diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-04-26 23:29:14 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-04-26 23:29:14 +0300 |
commit | 2c0f30c29b4b70a45ba01a0c32ae31ac7f75625b (patch) | |
tree | dd207c5eb32fec346b51af493e386948083fd966 /vm.sh | |
parent | 9bf5719d4c59993c07113c089ebd5a92d692f785 (diff) |
learning about modules
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 } |