commit 457ff9de9176975e8edf2e22f714e86ce330ca03
parent b1eb4ac74b48ad3be1193ba73ca5becbba6bd699
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Thu, 6 Aug 2026 00:03:04 +0000
fix non-chainloading commands in prepare_chroot
Diffstat:
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/zsh-functions/confz_site_containers_init b/zsh-functions/confz_site_containers_init
@@ -44,8 +44,6 @@ confz_site_containers_usersvc_simple_check() {
userdir=$vars[containers_dir]/user/$vars[user]
bindroot=$userdir/$vars[container_name]/root
- (($+vars[prepare_el])) && prepare_el_lines+=( $vars[prepare_el] )
-
if (($+vars[mount_ro])); then
flags=$'\tnone\tbind,ro,nosuid,nodev\t0 0'
for mtp in ${=vars[mount_ro]}; do
@@ -77,6 +75,7 @@ confz_site_containers_usersvc_simple_check() {
done
fi
+ (($+vars[prepare_el])) && prepare_el_lines+=( $vars[prepare_el] )
if (($#mnt_dirs_extra)); then
unify mnt_dirs_extra "$mnt_dirs_extra"
@@ -201,14 +200,16 @@ confz_site_containers_user_check() {
local with_more_fds=pid1_el='zsh -c "ulimit -Hn 16384 && exec \"$@\"" --'
local -a el_mount_usb_devices=(
- 'if { mount -o bind,ro /dev/bus/usb dev/bus/usb }'
- 'mount -t sysfs sysfs sys'
+ 'if { s6-mount -o bind,ro,nosuid,dev /dev/bus/usb dev/bus/usb }'
+ 'if { s6-mount -o remount,bind,ro,nosuid,dev _ dev/bus/usb }'
+ 'if { s6-mount -t sysfs sysfs sys }'
)
local with_usb=prepare_el=${(F)el_mount_usb_devices}
local -a el_mount_audio_devices=(
- 'if { mount -o bind,ro /dev/snd dev/snd }'
- 'mount -t sysfs sysfs sys' # maybe not necessary?
+ 'if { s6-mount -o bind,ro,nosuid,dev /dev/snd dev/snd }'
+ 'if { s6-mount -o remount,bind,ro,nosuid,dev _ dev/snd }'
+ 'if { s6-mount -t sysfs sysfs sys }' # maybe not necessary?
)
local with_audio=prepare_el=${(F)el_mount_audio_devices}