vmTools.runInLinuxVM: create fd symlinks in /dev

These are usually set up by systemd, but there's no systemd in the
VM.  /dev/fd is required for <(...) syntax in bash, and I'm sure lots
of things depend on the stdin/stdout/stderr links as well.
This commit is contained in:
Alyssa Ross 2021-12-07 23:49:25 +00:00
parent feb86343bd
commit 9c4c0f89a5
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -90,6 +90,10 @@ rec {
done
mount -t devtmpfs devtmpfs /dev
ln -s /proc/self/fd /dev/fd
ln -s /proc/self/fd/0 /dev/stdin
ln -s /proc/self/fd/1 /dev/stdout
ln -s /proc/self/fd/2 /dev/stderr
ifconfig lo up