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
/etc
/fstab
<<EOF
9 virtfs /mnt 9p trans=virtio 0 0
10 tmpfs /tmp tmpfs defaults 0 0
12 cat > vm
/.profile
<<EOF
15 stty -F /dev/ttyS1 -echo
19 cat >> vm
/etc
/sudoers
<<EOF
20 Defaults>nobody closefrom=5
21 Defaults>nobody !env_check
22 Defaults>nobody env_keep="ONLINE_JUDGE PATH HOME"
24 install gruntmaster-exec gruntmaster-compile vm
/usr
/bin
/
26 mksquashfs vm vm.squashfs
-comp lzo