Mount a tmpfs at /tmp in ex/makevm to appease ghc
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 09:20:47 +0000 (11:20 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 09:20:57 +0000 (11:20 +0200)
ex/makevm

index 7da2614..9154278 100755 (executable)
--- a/ex/makevm
+++ b/ex/makevm
@@ -5,8 +5,11 @@ USER=$(getent passwd www-data | cut -f3 -d:)
 rm -rf vm/ vm.squashfs
 multistrap -f ex/vm.conf
 ln -s vm/usr/bin/mawk vm/bin/awk
-echo 'virtfs /mnt 9p trans=virtio,auto 0 0' > vm/etc/fstab
 echo '/sbin/poweroff -f' > vm/.bash_logout
+cat > vm/etc/fstab <<EOF
+virtfs /mnt 9p    trans=virtio,auto 0 0
+tmpfs  /tmp tmpfs defaults          0 0
+EOF
 cat > vm/.profile <<EOF
 mount -a
 stty -F /dev/ttyS1 -echo
This page took 0.025123 seconds and 4 git commands to generate.