mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
Merge pull request #148 from djs55/port-filesystem
On Hyper-V, mount the /port filesystem
This commit is contained in:
commit
8bc6e72020
@ -10,8 +10,12 @@ start()
|
||||
ebegin "Setting up proxy port service"
|
||||
|
||||
mkdir -p /port
|
||||
if [ -d /sys/bus/vmbus ]; then
|
||||
# Running on a Hyper-V hypervisor
|
||||
/sbin/9pmount-vsock --serviceid 0B95756A-9985-48AD-9470-78E060895BE7 listen port /port
|
||||
else
|
||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /port
|
||||
|
||||
fi
|
||||
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/proxy-vsockd.pid
|
||||
[ -n "${LOGFILE}" ] || LOGFILE=/var/log/proxy-vsockd.log
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user