mrrl-containers

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

commit a8a678d080cf3d75e2621954b2317a11ab6a80f5
parent cf146194285c6cbd7700583620d9f9404738fea3
Author: ccx <ccx@te2000.cz>
Date:   Sat, 15 Jun 2024 19:58:02 +0000

Use inline zsh command to set hardlimit fds

Diffstat:
Mzsh-functions/confz_site_containers_init | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/zsh-functions/confz_site_containers_init b/zsh-functions/confz_site_containers_init @@ -172,11 +172,7 @@ confz_site_containers_user_check() { ) local in_netns=pid1_el=${(F)el_netns} - local -a exec_softlimit_fd=( - "#!$(which zsh) -e" - 'ulimit -H -n 16384' - 'exec "$@"' - ) + local with_more_fds=pid1_el='zsh -c "ulimit -Hn 16384 && exec \"$@\"" --' local -a el_mount_usb_devices=( "#!$(which execlineb) -P" @@ -203,7 +199,7 @@ confz_site_containers_user_check() { UCa tor UCa ssh UCa pass mount_rw="ccx-password-store" - UC rcm-ssh alpine-ssh "$ro rcm-devops" + UC rcm-ssh alpine-ssh "$ro rcm-devops" $with_more_fds UCa socials UCa gpg $with_usb $in_netns UCa notes $in_netns