commit 122912fb4e9a63aff79a0a36d0a4d92ed91a4a74
parent 33e49cc64d1ee286ac2e04c34c507012216e0fba
Author: ccx <ccx@te2000.cz>
Date: Sun, 21 Apr 2024 01:19:59 +0000
Also specify -o bind when remounting
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/zsh-functions/confz_containers_init b/zsh-functions/confz_containers_init
@@ -413,7 +413,7 @@ confz_container_service_ephemeral_check() {
dst_el=\"${${dst//\\/\\\\}//\"/\\\"}\"
pid1_el_lines+=(
"if { s6-mount -o bind,$rw,nodev,nosuid $src_el $dst_el }"
- "if { s6-mount -o remount,$rw,nodev,nosuid . $dst_el }"
+ "if { s6-mount -o remount,bind,$rw,nodev,nosuid . $dst_el }"
)
done
@@ -508,7 +508,7 @@ confz_container_service_generic_check() {
dst_el=\"${${dst//\\/\\\\}//\"/\\\"}\"
pid1_el_lines+=(
"if { s6-mount -o bind,$rw,nodev,nosuid $src_el $dst_el }"
- "if { s6-mount -o remount,$rw,nodev,nosuid . $dst_el }"
+ "if { s6-mount -o remount,bind,$rw,nodev,nosuid . $dst_el }"
)
done
diff --git a/zsh-functions/confz_site_containers_init b/zsh-functions/confz_site_containers_init
@@ -35,7 +35,7 @@ confz_site_containers_usersvc_simple_check() {
pid1_el_lines+=(
"if { mkdir -p $dst_el }"
"if { s6-mount -r -o bind,nodev,nosuid $src_el $dst_el }"
- "if { s6-mount -o remount,ro,nodev,nosuid . $dst_el }"
+ "if { s6-mount -o remount,bind,ro,nodev,nosuid . $dst_el }"
)
done
fi
@@ -51,7 +51,7 @@ confz_site_containers_usersvc_simple_check() {
pid1_el_lines+=(
"if { mkdir -p $dst_el }"
"if { s6-mount -r -o bind,nodev,nosuid $src_el $dst_el }"
- "if { s6-mount -o remount,rw,nodev,nosuid . $dst_el }"
+ "if { s6-mount -o remount,bind,rw,nodev,nosuid . $dst_el }"
)
done
fi