Mount /proc in VM and fix warning
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 27 Apr 2015 16:35:44 +0000 (19:35 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 27 Apr 2015 16:35:44 +0000 (19:35 +0300)
ex/makevm

index df3b103..31a1761 100755 (executable)
--- a/ex/makevm
+++ b/ex/makevm
@@ -6,13 +6,15 @@ 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
+virtfs /mnt  9p     trans=virtio 0 0
+tmpfs  /tmp  tmpfs  defaults     0 0
+procfs /proc procfs defaults     0 0
 EOF
 cat > vm/.profile <<EOF
 mount /mnt
 mount /tmp
-stty -F /dev/ttyS1 -echo
+mount /proc
+[ -e /dev/ttyS1 ] && stty -F /dev/ttyS1 -echo
 cd /mnt
 export PS1="# "
 EOF
This page took 0.026741 seconds and 4 git commands to generate.