diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-04-28 00:54:59 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-04-28 00:54:59 +0300 |
commit | 7395f6ec5385cd4895755c0c48e878a01214ef1c (patch) | |
tree | 179d108430d6a6e580ab846f0ea0ea2af26921ae /vm.sh | |
parent | 2c0f30c29b4b70a45ba01a0c32ae31ac7f75625b (diff) |
added testing framework
Diffstat (limited to 'vm.sh')
-rwxr-xr-x | vm.sh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |