Add scripts to build a toolchain for running VM tests

This commit is contained in:
2024-05-14 22:09:05 +02:00
parent 51fa3efc32
commit 68264016ce
10 changed files with 688 additions and 15 deletions

2
tools/files/fstab Normal file
View File

@ -0,0 +1,2 @@
/dev/vda / ext4 defaults 1 1
proc /proc proc defaults 0 0

3
tools/files/inittab Normal file
View File

@ -0,0 +1,3 @@
::sysinit:/etc/init.d/rcS
::shutdown:/etc/init.d/rcK
::askfirst:-/bin/sh

7
tools/files/rcK Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
killall5 -15
sleep 2
umount -v -a -r -t no,proc,sysfs,devtmpfs

7
tools/files/rcS Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
mount -v proc /proc -n -t proc
mount -w -v -n -o remount /
mount -a