multistrap -f ex/vm.conf
ln -s vm/usr/bin/mawk vm/bin/awk
echo '/sbin/poweroff -f' > vm/.bash_logout
-cat > vm/etc/fstab <<EOF
-virtfs /mnt 9p trans=virtio 0 0
-tmpfs /tmp tmpfs defaults 0 0
-procfs /proc proc defaults 0 0
-EOF
cat > vm/.profile <<EOF
-mount /mnt
-mount /tmp
-mount /proc
+mount -t 9p -o trans=virtio virtfs /mnt
+mount -t ramfs ramfs /tmp
+mount -t proc proc /proc
+mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
+echo ':jar:M::PK\x03\x04::/usr/bin/jexec:' > /proc/sys/fs/binfmt_misc/register
[ -e /dev/ttyS1 ] && stty -F /dev/ttyS1 -echo
cd /mnt
export PS1="# "