munix: add -- before command args to prevent option parsing

muvm was interpreting command arguments like '-c' (from /bin/sh -c)
as its own options. Adding '--' separates muvm options from the
command and its arguments.
This commit is contained in:
Jörg Thalheim 2026-01-15 17:09:43 +01:00
parent 214d4c4500
commit 06a26e7dee

2
munix
View file

@ -205,5 +205,5 @@ bwrap --unshare-all --share-net \
-e container=munix \
-e MICROVM_CLOSURE="$MICROVM_CLOSURE" \
-e MICROVM_UID="$MICROVM_UID" -e MICROVM_GID="$MICROVM_GID" \
-i -t "${MICROVM_COMMAND[@]}" \
-i -t -- "${MICROVM_COMMAND[@]}" \
13< /etc/resolv.conf