aboutsummaryrefslogtreecommitdiff
path: root/vm.sh
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-04-28 00:54:59 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-04-28 00:54:59 +0300
commit7395f6ec5385cd4895755c0c48e878a01214ef1c (patch)
tree179d108430d6a6e580ab846f0ea0ea2af26921ae /vm.sh
parent2c0f30c29b4b70a45ba01a0c32ae31ac7f75625b (diff)
added testing framework
Diffstat (limited to 'vm.sh')
-rwxr-xr-xvm.sh10
1 files changed, 7 insertions, 3 deletions
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