2 GROUP
=$
(getent group www-data | cut
-f3 -d:)
3 USER
=$
(getent passwd www-data | cut
-f3 -d:)
7 mount
/proc
-o bind vm
/proc
8 multistrap
-f ex
/vm.conf
9 ln -s vm
/usr
/bin
/mawk vm
/bin
/awk
10 echo '/sbin/poweroff -f' > vm
/.bash_logout
11 cat > vm
/etc
/fstab
<<EOF
12 virtfs /mnt 9p trans=virtio,auto 0 0
13 tmpfs /tmp tmpfs defaults 0 0
15 cat > vm
/.profile
<<EOF
17 stty -F /dev/ttyS1 -echo
21 cat > vm
/etc
/initramfs-tools
/modules
<<EOF
27 install gruntmaster-exec gruntmaster-compile vm
/usr
/bin
/
28 sed -i -e "s/USER => 65534/USER => $USER/" -e "s/GROUP => 65534/GROUP => $GROUP/" vm
/usr
/bin
/gruntmaster-exec
29 chroot vm update-initramfs
-d -k 3.2.0-4-amd64
30 chroot vm update-initramfs
-c -k 3.2.0-4-amd64
32 mksquashfs vm vm.squashfs
-comp lzo