USER=$(getent passwd www-data | cut -f3 -d:)
rm -rf vm/ vm.squashfs
+mkdir -p vm/proc/
+mount /proc -o bind vm/proc
multistrap -f ex/vm.conf
ln -s vm/usr/bin/mawk vm/bin/awk
echo '/sbin/poweroff -f' > vm/.bash_logout
sed -i -e "s/setgid 65534/setgid $GROUP/" -e "s/setuid 65534/setuid $USER/" vm/usr/bin/gruntmaster-exec
chroot vm update-initramfs -d -k 3.2.0-4-amd64
chroot vm update-initramfs -c -k 3.2.0-4-amd64
+umount vm/proc
mksquashfs vm vm.squashfs -comp lzo