2 [ `id -u` -eq 0 ] ||
echo 'This script must be run as root' && exit 1
5 ln -s vm
/usr
/bin
/mawk vm
/bin
/awk
6 echo 'virtfs /mnt 9p trans=virtio,auto 0 0' > vm
/etc
/fstab
7 echo '/sbin/poweroff -f' > vm
/.bash_logout
8 cat > vm
/.profile
<<EOF
10 stty -F /dev/ttyS1 -echo
14 cat > vm
/etc
/initramfs-tools
/modules
<<EOF
20 cp gruntmaster-exec gruntmaster-compile vm
/usr
/bin
/
21 chroot vm update-initramfs
-d -k 3.2.0-4-amd64
22 chroot vm update-initramfs
-c -k 3.2.0-4-amd64
23 mksquashfs vm vm.squashfs
-comp lzo