qemu-binfmt-conf.sh: fix -F option
PATCH RESEND v2 1/1 qemu-binfmt-conf.sh: fix -F option
From: Martin Wilck <[email protected]>
qemu-binfmt-conf.sh should use "-F" as short option for "--qemu-suffix". Fix the getopt call to make this work.
---
previous: https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg03132.html
ref: https://bugzilla.opensuse.org/show_bug.cgi?id=1186256
--- scripts/qemu-binfmt-conf.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/qemu-binfmt-conf.sh +3 -1
@@ -340,7 +340,9 @@ PERSISTENT=no PRESERVE_ARG0=no QEMU_SUFFIX="" -options=$(getopt -o ds:Q:S:e:hc:p:g: -l debian,systemd:,qemu-path:,qemu-suffix:,exportdir:,help,credential:,persistent:,preserve-argv0: -- "$@") +_longopts="debian,systemd:,qemu-path:,qemu-suffix:,exportdir:,help,credential:,\ +persistent:,preserve-argv0:" +options=$(getopt -o ds:Q:S:e:hc:p:g:F: -l ${_longopts} -- "$@") eval set -- "$options" while true ; do
Signature · 1 line
2.33.1
Le 29/11/2021 à 14:51, [email protected] a écrit :
Quoted 8 lines
From: Martin Wilck <[email protected]>
qemu-binfmt-conf.shshould use "-F" as short option for "--qemu-suffix". Fix the getopt call to make this work.Signed-off-by Martin Wilck <[email protected]>---
previous: https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg03132.html
Sorry for the delay, didn't see the email.
To put "linux-user" in the email subject helps to pass through all my email filters...
Quoted 1 line
I think you don't need the suffix anymore with the new "--preserve-argv0" parameter.
See
6e1c0d7b951e ("linux-user: manage binfmt-misc preserve-arg[0] flag")but you need v5.12 kernel.
2347961b11d4 ("binfmt_misc: pass binfmt_misc flags to the interpreter")
Moreover it seems it will be possible (soon?) to use a binfmt_misc configuration per container;
[1/2] binfmt_misc: cleanup on filesystem umount
https://lore.kernel.org/lkml/[email protected]/T/#m4a99a73c4e2c261a800dc6765fcbea8087635cfc
[2/2/] binfmt_misc: enable sandboxed mounts
https://lore.kernel.org/lkml/[email protected]/T/#m8d991c47721f34e37d8253cb54ddf7b56a048f3e
Quoted 10 lines
--- scripts/qemu-binfmt-conf.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)scripts/qemu-binfmt-conf.sh +0
-0
scripts/qemu-binfmt-conf.sh PERSISTENT=no · line 348
Quoted 10 lines
scripts/qemu-binfmt-conf.sh +3
-1@@ -340,7 +340,9 @@ PERSISTENT=no PRESERVE_ARG0=no QEMU_SUFFIX="" -options=$(getopt -o ds:Q:S:e:hc:p:g: -l debian,systemd:,qemu-path:,qemu-suffix:,exportdir:,help,credential:,persistent:,preserve-argv0: -- "$@") +_longopts="debian,systemd:,qemu-path:,qemu-suffix:,exportdir:,help,credential:,\ +persistent:,preserve-argv0:" +options=$(getopt -o ds:Q:S:e:hc:p:g:F: -l ${_longopts} -- "$@") eval set -- "$options" while true ; do