mirror of
https://github.com/89luca89/distrobox.git
synced 2026-11-02 20:30:16 -06:00
fix: flags for read-only and recursive slave mount (#2086)
closes #2083
This commit is contained in:
1 parent
46d046b095
commit
892f93baaa
1 file changed
+3
-1
+3
-1
@@ -678,8 +678,10 @@ generate_create_command()
|
||||
# so rslave/rshared bind propagation is not supported.
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
rslave=""
|
||||
rorslave=":ro"
|
||||
else
|
||||
rslave=":rslave"
|
||||
rorslave=":ro,rslave"
|
||||
fi
|
||||
|
||||
# Set the container hostname the same as the container name.
|
||||
@@ -751,7 +753,7 @@ generate_create_command()
|
||||
tr ',' '\n' | grep -q "^ro$"; then
|
||||
|
||||
result_command="${result_command}
|
||||
--volume ${rootdir}:/run/host${rootdir}:ro${rslave}"
|
||||
--volume ${rootdir}:/run/host${rootdir}${rorslave}"
|
||||
continue
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user