mrrl-containers

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

commit 877ec64f3fa028befc6aa8da372219a179464f67
parent acf0ecd483a7673f19617434cfae956299aa2b46
Author: ccx <ccx@te2000.cz>
Date:   Mon, 18 Mar 2024 14:21:25 +0000

Do fstab mounts before extra commands

Diffstat:
Msbin/ns_run_unshared | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sbin/ns_run_unshared b/sbin/ns_run_unshared @@ -80,9 +80,6 @@ if { mkdir ${NS_TMPFS}/oldroot ${NS_TMPFS}/bin } #if { s6-hiercopy $NS_BIN ${NS_TMPFS}/bin } if { s6-mount -n -o bind,ro $NS_BIN ${NS_TMPFS}/bin } -# container-specific setup -if { runblock -n 1 1 } - # optional fstab file for extra mounts if { if -t { eltest -v NS_FSTAB } @@ -91,6 +88,9 @@ if { } unexport NS_FSTAB +# container-specific setup +if { runblock -n 1 1 } + # now we can make /dev immutable if { mount -o remount,ro dev }