]> iEval git - gruntmaster-daemon.git/commitdiff
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 df3b10368f0311a599ea05fa8618af33caa74948..31a176110822dd4d4ced51e7fd908d97413b441c 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.02595 seconds and 4 git commands to generate.