mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
move transfused 9p mount into its own init file
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
aac92e525c
commit
73a0d72378
@ -8,11 +8,6 @@ start()
|
||||
do
|
||||
TAG=$(cat $virtio/mount_tag)
|
||||
case $TAG in
|
||||
"fuse")
|
||||
mkdir -p /Transfuse
|
||||
mkdir -p /Mac
|
||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000,msize=32768 fuse /Transfuse
|
||||
;;
|
||||
"db")
|
||||
mkdir -p /Database
|
||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 db /Database
|
||||
|
@ -9,10 +9,12 @@ depend()
|
||||
|
||||
start()
|
||||
{
|
||||
[ -d /Transfuse ] || exit 0
|
||||
|
||||
ebegin "Starting FUSE socket passthrough"
|
||||
|
||||
mkdir -p /Transfuse
|
||||
mkdir -p /Mac
|
||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000,msize=32768 fuse /Transfuse
|
||||
|
||||
if cat /proc/cmdline | grep -q 'com.docker.driverDir'
|
||||
then
|
||||
DRIVERDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"
|
||||
|
Loading…
Reference in New Issue
Block a user