4 mount
/proc
-o bind vm
/proc
5 multistrap
-f ex
/vm.conf
6 ln -s vm
/usr
/bin
/mawk vm
/bin
/awk
7 echo '/sbin/poweroff -f' > vm
/.bash_logout
8 cat > vm
/.profile
<<EOF
9 mount -t 9p -o trans=virtio virtfs /mnt
10 mount -t ramfs ramfs /tmp
11 mount -t proc proc /proc
12 mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
13 echo ':jar:M::PK\x03\x04::/usr/bin/jexec:' > /proc/sys/fs/binfmt_misc/register
14 [ -e /dev/ttyS1 ] && stty -F /dev/ttyS1 -echo
18 cat >> vm
/etc
/sudoers
<<EOF
19 Defaults>nobody closefrom=5
20 Defaults>nobody !env_check
21 Defaults>nobody env_keep="ONLINE_JUDGE PATH HOME"
23 install gruntmaster-exec gruntmaster-compile vm
/usr
/bin
/
25 mksquashfs vm vm.squashfs
-comp lzo