aboutsummaryrefslogtreecommitdiff
path: root/vm.sh
diff options
context:
space:
mode:
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