mrrl-containers

MRRL version of container scripts
git clone https://ccx.te2000.cz/git/mrrl-containers
Log | Files | Refs

commit 70980023f17c5ca028034ccce3c9760d32c39388
parent dd408ba431d4acb17ce2fc50c51e1879700f9cbe
Author: ccx <ccx@te2000.cz>
Date:   Wed, 18 Sep 2024 23:59:58 +0000

Add "slave" bind-mount for generic containers

Diffstat:
Mzsh-functions/confz_containers_init | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/zsh-functions/confz_containers_init b/zsh-functions/confz_containers_init @@ -409,7 +409,7 @@ confz_container_service_ephemeral_check() { pid1_el_lines=( "#!$(which execlineb) -S0" ) for src dst rw in "$bind_mounts[@]"; do - fstab+=( $src$'\t'$dst$'\tnone\tbind,'$rw$',nosuid,nodev\t0 0' ) + fstab+=( $src$'\t'$dst$'\tnone\tbind,'$rw$',nosuid,nodev,slave\t0 0' ) src_el=\"${${src//\\/\\\\}//\"/\\\"}\" dst_el=\"${${dst//\\/\\\\}//\"/\\\"}\" pid1_el_lines+=( @@ -507,11 +507,11 @@ confz_container_service_generic_check() { pid1_el_lines=( "#!$(which execlineb) -S0" ) for src dst rw in "$bind_mounts[@]"; do - fstab+=( $src$'\t'$dst$'\tnone\tbind,'$rw$',nosuid,nodev\t0 0' ) + fstab+=( $src$'\t'$dst$'\tnone\tbind,'$rw$',nosuid,nodev,slave\t0 0' ) src_el=\"${${src//\\/\\\\}//\"/\\\"}\" dst_el=\"${${dst//\\/\\\\}//\"/\\\"}\" pid1_el_lines+=( - "if { s6-mount -o bind,$rw,nodev,nosuid $src_el $dst_el }" + "if { s6-mount -o bind,$rw,nodev,nosuid,slave $src_el $dst_el }" "if { s6-mount -o remount,bind,$rw,nodev,nosuid . $dst_el }" ) done