From 7395f6ec5385cd4895755c0c48e878a01214ef1c Mon Sep 17 00:00:00 2001 From: kartofen Date: Fri, 28 Apr 2023 00:54:59 +0300 Subject: added testing framework --- vm.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'vm.sh') diff --git a/vm.sh b/vm.sh index 69b9bb5..9972464 100755 --- a/vm.sh +++ b/vm.sh @@ -22,9 +22,13 @@ function initramfs ln -sf busybox $DIR/bin/mount # ln -sf busybox $DIR/bin/bash - # copy the compiled binaries - mkdir -p $DIR/usr/bin - cp $BIND/*.ko $DIR/usr/bin + # copy the things + mkdir -p $DIR/usr/ + cp -r $BIND/* $DIR/usr/ + + rm -f $DIR/usr/kernel* # no need for the kernel + rm -f $DIR/usr/*.img # no need for the initramfs + rm -rf $DIR/usr/initramfs # no need for the initramfs # copy the script and the bin cp $2 $DIR/init -- cgit v1.2.3