From nobody Sat May 18 07:09:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421368714236.88699836844705; Tue, 12 Mar 2019 13:09:28 -0700 (PDT) Received: from localhost ([127.0.0.1]:59967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3niH-0000gi-M0 for importer@patchew.org; Tue, 12 Mar 2019 16:09:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ncE-0003nC-2s for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nQG-0003ab-7v for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:50:50 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:48280 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nQE-0003Wg-Aw for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:50:48 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id 2BAFD3C1CD; Tue, 12 Mar 2019 20:50:45 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 000B0110052; Tue, 12 Mar 2019 20:50:44 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E80A711004A; Tue, 12 Mar 2019 20:50:44 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:50:44 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id A0D7323CDB; Tue, 12 Mar 2019 20:50:44 +0100 (CET) Date: Tue, 12 Mar 2019 19:50:39 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195039.GA8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:50:44 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No-0.937-7.0-31-10 X-imss-scan-details: No-0.937-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10-0.937300-10.000000 X-TMASE-MatchedRID: hwtUKlde9zE8mRT0SYY6fkvrB8UvzFr4viRliDV2nyxLgo8+IIHbcKyJ SPZ1MHFJyQUI9mjBTGrMJYD0aRF0RSvslLrYzXFMoMfp2vHck9X54F/2i/DwjTqI/Q1zONHSo3u yF/fzkXbL7a7vhpw6CH8mA3sDDq0A5vGrSCzt19MV7NKYhc1lOfoLR4+zsDTtQh+ArmEemWXzI8 5BvSDQEnjU4PjpPPRsLP70QQn0w25js9mwfpYMG/kUxKdM2YBcxqaFumKRJvRZapFMt7EZ+/7Nb EwbVh/qW8Mo9oUVlaBTq+NyuVQu+IbhWbmaLtpNkm94VhWUY9vjdetbrmPKzVXK9tOD+u6c X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:50:45 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 1/9] qemu-binfmt-conf.sh: enforce safe style consistency X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Spaces are added before '; then', for consistency. All the tests are prefixed with 'x', in order to avoid risky comparisons (i.e. a user deliberately trying to provoke a syntax error). Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index b5a16742a1..0009385be2 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -219,12 +219,12 @@ qemu_check_access() { qemu_check_bintfmt_misc() { # load the binfmt_misc module - if [ ! -d /proc/sys/fs/binfmt_misc ]; then + if [ ! -d /proc/sys/fs/binfmt_misc ] ; then if ! /sbin/modprobe binfmt_misc ; then exit 1 fi fi - if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then + if [ ! -f /proc/sys/fs/binfmt_misc/register ] ; then if ! mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc ; then exit 1 fi @@ -255,10 +255,10 @@ qemu_check_systemd() { qemu_generate_register() { flags=3D"" - if [ "$CREDENTIAL" =3D "yes" ] ; then + if [ "x$CREDENTIAL" =3D "xyes" ] ; then flags=3D"OC" fi - if [ "$PERSISTENT" =3D "yes" ] ; then + if [ "x$PERSISTENT" =3D "xyes" ] ; then flags=3D"${flags}F" fi @@ -296,18 +296,18 @@ qemu_set_binfmts() { mask=3D$(eval echo \$${cpu}_mask) family=3D$(eval echo \$${cpu}_family) - if [ "$magic" =3D "" ] || [ "$mask" =3D "" ] || [ "$family" =3D ""= ] ; then + if [ "x$magic" =3D "x" ] || [ "x$mask" =3D "x" ] || [ "x$family" = =3D "x" ] ; then echo "INTERNAL ERROR: unknown cpu $cpu" 1>&2 continue fi qemu=3D"$QEMU_PATH/qemu-$cpu" - if [ "$cpu" =3D "i486" ] ; then + if [ "x$cpu" =3D "xi486" ] ; then qemu=3D"$QEMU_PATH/qemu-i386" fi qemu=3D"$qemu$QEMU_SUFFIX" - if [ "$host_family" !=3D "$family" ] ; then + if [ "x$host_family" !=3D "x$family" ] ; then $BINFMT_SET fi done -- 2.21.0 From nobody Sat May 18 07:09:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421704500372.6111950335418; Tue, 12 Mar 2019 13:15:04 -0700 (PDT) Received: from localhost ([127.0.0.1]:60231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nnh-00063A-Ez for importer@patchew.org; Tue, 12 Mar 2019 16:15:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ncD-0003wS-FA for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nQb-000477-UV for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:51:10 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:25848 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nQb-00045O-KC for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:51:09 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id B3C463B26E; Tue, 12 Mar 2019 20:51:08 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8B8C711004A; Tue, 12 Mar 2019 20:51:08 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7FD8E110045; Tue, 12 Mar 2019 20:51:08 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:51:08 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id 3B9B43B26E; Tue, 12 Mar 2019 20:51:08 +0100 (CET) Date: Tue, 12 Mar 2019 19:51:08 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195108.GB8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:51:08 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No-0.353-7.0-31-10 X-imss-scan-details: No-0.353-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10-0.353200-10.000000 X-TMASE-MatchedRID: mafpUJSAc1A8mRT0SYY6fvYiLRVJ915DU+A7YkpDJ1g76cr3lZK7RGuk bF2FNZCX0pQhZpR72XZU4ZaPWnopPkwzknXXiTeeYl83W3jnFDD7At+An9uo83PBWZjlMys2Cf2 h9A2gFAVwudrQH6GMcmKwOsgOBYuApjLap8Pn2LsG1NkcAmdR4CseSAhqf1rRTDoylMQmcK9Tf9 uxAWVtFeLzNWBegCW2U/185JqDvmbaqT6lqWS9QsRB0bsfrpPInxMyeYT53Rl0k78Xi2V63XlBz UwUcAkvz652VKTYXo1q4rxahAyhGy3EfHwcgkVprCSGRotTrQn19oHAk+oUfQ/0eKxYdOkTReim 6QLH0Yvpn6fQaYYfBmEZXwGzbQsWLOeM/yNfYDnlrtxuq+PMxcPINhwTXBeZ X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:51:08 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 2/9] qemu-binfmt-conf.sh: make opts -p and -c boolean X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch breaks backward compatibility. Both '--persistent' and '--credential' default to 'no'. Hence, '-p no' or '-c no' are reduntant. Overall, accepting an argument might be misleading because options are, indeed, boolean. This patch makes both options boolean in getopt, so if any of them is provided the corresponding variable is set to true. Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 0009385be2..ca15ff8092 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -168,8 +168,8 @@ qemu_get_family() { usage() { cat < Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421604789571.8387008965911; Tue, 12 Mar 2019 13:13:24 -0700 (PDT) Received: from localhost ([127.0.0.1]:60197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nm5-0004Ba-MX for importer@patchew.org; Tue, 12 Mar 2019 16:13:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ncD-0003qI-Cv for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nR8-0005D3-SO for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:51:43 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:14351 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nR8-0005A3-Hn for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:51:42 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id E679B3AF0B; Tue, 12 Mar 2019 20:51:40 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AC039110052; Tue, 12 Mar 2019 20:51:40 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9EC7411004A; Tue, 12 Mar 2019 20:51:40 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:51:40 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id 55E5E38304; Tue, 12 Mar 2019 20:51:40 +0100 (CET) Date: Tue, 12 Mar 2019 19:51:40 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195140.GC8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:51:40 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No-1.120-7.0-31-10 X-imss-scan-details: No-1.120-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10-1.120100-10.000000 X-TMASE-MatchedRID: P7d3tDo+wQo8mRT0SYY6fo6MisxJraxHecvjbu/xDjowEhHW5KVAzzO+ sIxDA42K0pQhZpR72XZU4ZaPWnopPibhJjVR0U351yMJs9mBCcUr2PDgwMWbIoKwF4K/wIz9AxE 7O5AxMWucHepQtiMfOBTcMjpPwLpOetI/1G0ZlijJ1E/nrJFEDxny1I2tysbymyiLZetSf8mfYw IIcLjjbeGANVBCTxXNC24oEZ6SpSlR8RAUGq/SZ2SWUv9NGeIZ4a2FNkv7/SSZMZldyp3i92NQ/ ugow9TVFE+rSqK76FhLxAWur9nHVLlY4DWRtTxP9j0acPgOcNyLORRq70g+bTfRxNq5/jk8Z6j2 OO0xbkIzq0nucUGfkI5AUTt0AWgUSac++I+/Ls3AvpLE+mvX8g== X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:51:40 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 3/9] qemu-binfmt-conf.sh: add QEMU_CREDENTIAL and QEMU_PERSISTENT X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Allow to set options '--persistent' and/or '--credential' through environment variables. If not defined, defaults are used ('no'). Anyway, command-line arguments have priority over environment variables. Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index ca15ff8092..ad9ae731a0 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -186,9 +186,11 @@ Usage: qemu-binfmt-conf.sh [--qemu-path PATH][--debian= ][--systemd CPU] (default: $SYSTEMDDIR or $DEBIANDIR) --credential: if present, credential and security tokens are calculated according to the binary to interpret + ($QEMU_CREDENTIAL=3Dyes) --persistent: if present, the interpreter is loaded when binfmt is configured and remains in memory. All future uses are cloned from the open file. + ($QEMU_PERSISTENT=3Dyes) To import templates with update-binfmts, use : @@ -255,10 +257,10 @@ qemu_check_systemd() { qemu_generate_register() { flags=3D"" - if [ "x$CREDENTIAL" =3D "xyes" ] ; then + if [ "x$QEMU_CREDENTIAL" =3D "xyes" ] ; then flags=3D"OC" fi - if [ "x$PERSISTENT" =3D "xyes" ] ; then + if [ "x$QEMU_PERSISTENT" =3D "xyes" ] ; then flags=3D"${flags}F" fi @@ -281,7 +283,7 @@ package qemu-$cpu interpreter $qemu magic $magic mask $mask -credential $CREDENTIAL +credential $QEMU_CREDENTIAL EOF } @@ -320,8 +322,10 @@ SYSTEMDDIR=3D"/etc/binfmt.d" DEBIANDIR=3D"/usr/share/binfmts" QEMU_PATH=3D/usr/local/bin -CREDENTIAL=3Dno -PERSISTENT=3Dno + +QEMU_PERSISTENT=3D"${QEMU_PERSISTENT:-no}" +QEMU_CREDENTIAL=3D"${QEMU_CREDENTIAL:-no}" + QEMU_SUFFIX=3D"" options=3D$(getopt -o ds:Q:S:e:hcp -l debian,systemd:,qemu-path:,qemu-suff= ix:,exportdir:,help,credential,persistent -- "$@") @@ -373,10 +377,10 @@ while true ; do exit 1 ;; -c|--credential) - CREDENTIAL=3D"yes" + QEMU_CREDENTIAL=3D"yes" ;; -p|--persistent) - PERSISTENT=3D"yes" + QEMU_PERSISTENT=3D"yes" ;; *) break -- 2.21.0 From nobody Sat May 18 07:09:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 155242143150810.640179394769234; Tue, 12 Mar 2019 13:10:31 -0700 (PDT) Received: from localhost ([127.0.0.1]:59983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3njE-0001bc-7q for importer@patchew.org; Tue, 12 Mar 2019 16:10:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ncB-0003uK-DF for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nRo-0006Cp-2u for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:52:25 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:30075 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nRn-0005tT-CB for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:52:24 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id 3090523CDB; Tue, 12 Mar 2019 20:52:10 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F37B711004A; Tue, 12 Mar 2019 20:52:09 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E7035110045; Tue, 12 Mar 2019 20:52:09 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:52:09 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id 9D8AA23CDB; Tue, 12 Mar 2019 20:52:09 +0100 (CET) Date: Tue, 12 Mar 2019 19:52:10 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195210.GD8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:52:09 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No--1.497-7.0-31-10 X-imss-scan-details: No--1.497-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10--1.497400-10.000000 X-TMASE-MatchedRID: mafpUJSAc1A8mRT0SYY6fgPZZctd3P4B+Gz435tISEGUdmT0Eka3cn4z 9jl2IgzvgML9UOgCBPexXMuu/NKBHrDyQVN2cGlR4bl1FkKDELfUqhJbkmLVezUsHjosUACSnFq TWUo/GE0z6xRyeDQUk9rR3zP0abjQZgDJ5bVJkeT/VoEOchXiKVObpRiWjuVrVI7KaIl9Nhfy+k xyAtKJyeLzNWBegCW2U/185JqDvmbaqT6lqWS9QsRB0bsfrpPInxMyeYT53Rnqgq1DnggCDGwFT Q39W9xdeyZIlW6gyg5kP5xKaRbCUu4+reWx1nB2PCdoNmqyCTPkdKEiuQCDM2wU/lss/Fz4EbVM wXjsOT3pn6fQaYYfBmEZXwGzbQsWLOeM/yNfYDnlrtxuq+PMxVZca9RSYo/b X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:52:10 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 4/9] qemu-binfmt-conf.sh: use the same presentation format as for qemu-* X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 63 +++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index ad9ae731a0..5ac1df680b 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -167,47 +167,48 @@ qemu_get_family() { usage() { cat < Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421573633133.18461817879552; Tue, 12 Mar 2019 13:12:53 -0700 (PDT) Received: from localhost ([127.0.0.1]:60193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nla-0003oH-Lh for importer@patchew.org; Tue, 12 Mar 2019 16:12:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ncB-0003ll-AE for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nS5-0006dM-L1 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:52:42 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:35833 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nS5-0006bU-A1 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:52:41 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id 43F1E3AF0B; Tue, 12 Mar 2019 20:52:40 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1224511004A; Tue, 12 Mar 2019 20:52:40 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 06492110045; Tue, 12 Mar 2019 20:52:40 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:52:39 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id B4DDF3AF0B; Tue, 12 Mar 2019 20:52:39 +0100 (CET) Date: Tue, 12 Mar 2019 19:52:40 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195240.GE8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:52:39 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No--0.374-7.0-31-10 X-imss-scan-details: No--0.374-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10--0.374300-10.000000 X-TMASE-MatchedRID: a3o/0593/lo8mRT0SYY6fvYiLRVJ915D+nvSwfDbaCX0HEAj+4yaX0/O fkh/+AL4Xr7NXg/pSgQkzmvdgzo8hjhhzU44NexTYl83W3jnFDATbU1KYGoQp/gnJH5vm2+gKjl bbAp2U/fArQXEdIyvR7Fcy6780oEemko3PpH7ZG7XIwmz2YEJxX0tCKdnhB58dQgf7bli9LzT6J DACkKf2wP5zT0d393cxlblqLlYqXJL3/a71gXE/CPJyM2EYGqxDG8wvWYfqt/5z4ofzAYwfvhEW 64mIwce8JJ8RI8roI9vVTiH4pi7Ij91XZ3Rd4Yq/mARaKQ6UhfMHaTeAcZOWN3WrhGUSfC8TRiD dzyAzmNLF4fxrdZ0s9+yfB9xNB3E X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:52:40 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 5/9] qemu-binfmt-conf.sh: remove 'qemu' prefix from cli options X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This breaks backward compatibility. Options 'qemu-path' and 'qemu-suffix' have the 'qemu-' prefix, which is not present in other option names ('debian', 'systemd', 'persistent', 'credential'...). In order to keep consistency, the prefix is removed. Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 5ac1df680b..c1dbdde7e6 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -167,6 +167,7 @@ qemu_get_family() { usage() { cat < Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421459760163.52587736789792; Tue, 12 Mar 2019 13:10:59 -0700 (PDT) Received: from localhost ([127.0.0.1]:60021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3njf-00025h-HX for importer@patchew.org; Tue, 12 Mar 2019 16:10:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nc9-0003ll-BI for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nSp-0007iS-DJ for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:53:28 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:14371 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nSp-0007fU-21 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:53:27 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id 570E123CDB; Tue, 12 Mar 2019 20:53:25 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 29D30110052; Tue, 12 Mar 2019 20:53:25 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1DFA0110050; Tue, 12 Mar 2019 20:53:25 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:53:25 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id CB0F838304; Tue, 12 Mar 2019 20:53:24 +0100 (CET) Date: Tue, 12 Mar 2019 19:53:25 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195325.GF8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:53:25 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No--0.390-7.0-31-10 X-imss-scan-details: No--0.390-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10--0.389800-10.000000 X-TMASE-MatchedRID: alNhoJufFSQ8mRT0SYY6fo6MisxJraxH6SXuwUgGH0jTF92ikMV2gYCu qghmtWfX4vfiP6+NS81oUJgKmvCzhtH/WqWljGhSbQ9aoPSmWJEk80hXoYXya5iHbfFxQ8Qro8W MkQWv6iXpKNrfYIUgLIcyJo642SRt3QfwsVk0UbvqwGfCk7KUs1JEDVn/CN8JqveSqdueBrL1K9 swnYZMg7kZzBheKnbCyBwgnufvX5efWXTF0lNUOquYpV70j1SSLHx5mwOOhE8wOeeSvJtrFmx8S 0nxThalnBu72ovT2F/i8atvTQB42kzdPFq1gcIzftwZ3X11IV0= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:53:25 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 6/9] qemu-binfmt-conf.sh: honour QEMU_PATH and/or QEMU_SUFFIX X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Allow to set 'path' or 'suffix' through environment variables, consistently with 'persistent' and 'credential'. Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index c1dbdde7e6..b846313b4e 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -177,7 +177,7 @@ Options and associated environment variables: Argument Env-variable Description -h|--help display this usage -Q|--path PATH QEMU_PATH set path to qemu interpreter(s) --F|--suffix SUFFIX add a suffix to the default interpre= ter name +-F|--suffix SUFFIX QEMU_SUFFIX add a suffix to the default interpre= ter name -p|--persistent QEMU_PERSISTENT (yes) load the interpreter and keep = it in memory; all future uses are cloned from the open file. -c|--credential QEMU_CREDENTIAL (yes) credential and security tokens= are calculated according @@ -191,6 +191,7 @@ Argument Env-variable Description Defaults: QEMU_PATH=3D$QEMU_PATH +QEMU_SUFFIX=3D$QEMU_SUFFIX QEMU_PERSISTENT=3D$QEMU_PERSISTENT QEMU_CREDENTIAL=3D$QEMU_CREDENTIAL @@ -323,13 +324,11 @@ BINFMT_SET=3Dqemu_register_interpreter SYSTEMDDIR=3D"/etc/binfmt.d" DEBIANDIR=3D"/usr/share/binfmts" -QEMU_PATH=3D/usr/local/bin - +QEMU_PATH=3D"${QEMU_PATH:-/usr/local/bin}" +QEMU_SUFFIX=3D"${QEMU_SUFFIX:-}" QEMU_PERSISTENT=3D"${QEMU_PERSISTENT:-no}" QEMU_CREDENTIAL=3D"${QEMU_CREDENTIAL:-no}" -QEMU_SUFFIX=3D"" - options=3D$(getopt -o ds:Q:S:e:hcp -l debian,systemd:,path:,suffix:,export= dir:,help,credential,persistent -- "$@") eval set -- "$options" -- 2.21.0 From nobody Sat May 18 07:09:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421122248676.0999426395318; Tue, 12 Mar 2019 13:05:22 -0700 (PDT) Received: from localhost ([127.0.0.1]:59855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3neF-0005RF-1r for importer@patchew.org; Tue, 12 Mar 2019 16:05:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nc5-0003qI-Hw for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nTe-0000YL-4u for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:54:19 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:43451 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nTV-0000Bu-7r for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:54:11 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id 282BA3AF0B; Tue, 12 Mar 2019 20:54:03 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E171011004A; Tue, 12 Mar 2019 20:54:02 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D4F9E110045; Tue, 12 Mar 2019 20:54:02 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:54:02 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id 8B15D3AF0B; Tue, 12 Mar 2019 20:54:02 +0100 (CET) Date: Tue, 12 Mar 2019 19:54:03 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195403.GG8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:54:02 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No--4.542-7.0-31-10 X-imss-scan-details: No--4.542-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10--4.542100-10.000000 X-TMASE-MatchedRID: RsPxVIkBekw8mRT0SYY6fggKAWhuC2ojb6bRSg4rpzvrKAwxOgrz3ZG4 TFKxKJcilB6IdnaWhV1343G9TapOGGJnITZQ7LgcvnSVh24OCE6+JGWINXafLNchlMhSt6Fev4d GcGTuw1dfll+ZbVibhYAvT09hxhi7zO35OKTxh+U2zdLf3NqhdtGuPHzXu+/6c8FZmOUzKzZWFs MQfbcNE+L34j+vjUvNoxDjGqq9g0nPlrFA9QLlUlz+axQLnAVBK9jw4MDFmyJFDR0AKGX+XH/sD LdkieHySFvD9DvvV0KpWL1QDKxiuJH0YXYnbGoz/sToY2qzpx5eu6llOoM7BnnDQRq5CiZHjocz muoPCq11d+LCQ1ipK/jmsIDehmIPFxtgF86j3voKvD4LgYLRQ33FlGH7TkjNcDGDNgnL3pGWQu6 X4OBEyWkb27PmgpTHNELoR8tJGSWd3SaL0pUZ0TIs/pHfy5KvymBsSxwng4cev0UmjjsZI564GT p+lG2X X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:54:03 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 7/9] qemu-binfmt-conf.sh: generalize to positional TARGETS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This breaks brackward compatibility. Option '--systemd CPU' allows to register binfmt interpreters for a single target architecture or for 'ALL' (of them). This patch generalizes the approach to support it in any mode (default, '--debian' or '--systemd'). To do so, option 'systemd' is changed to be boolean (no args). Then, all the positional arguments are considered to be a list of target architectures. If no positional arguments are provided, all of the architectures in qemu_target_list are registered. Conversely, argument value 'NONE' allows to make a 'dry run' of the script. I.e., checks are executed according to the mode, but no interpreter is registered. Support QEMU_TARGETS environment variable, consistently with 'path', 'suffix', 'persistent' and 'credential', The supported formats are the same as for positional arguments, which have priority. If both the variable and the list of positional arguments are empty, defaults to qemu_target_list. Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 80 +++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 34 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index b846313b4e..5d6535bfc9 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -6,6 +6,28 @@ mips mipsel mipsn32 mipsn32el mips64 mips64el \ sh4 sh4eb s390x aarch64 aarch64_be hppa riscv32 riscv64 xtensa xtensaeb \ microblaze microblazeel or1k x86_64" +# check if given TARGETS is/are in the supported target list +qemu_check_target_list() { + if [ $# -eq 0 ] ; then + checked_target_list=3D"$qemu_target_list" + return + fi + unset checked_target_list + for target ; do + for cpu in $qemu_target_list ; do + if [ "x$cpu" =3D "x$target" ] ; then + checked_target_list=3D"$checked_target_list $target" + break + fi + done + if [ "x$cpu" !=3D "x$target" ] ; then + echo "ERROR: unknown CPU \"$target\"" 1>&2 + usage + exit 1 + fi + done +} + i386_magic=3D'\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\= x00\x03\x00' i386_mask=3D'\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\= xff\xfe\xff\xff\xff' i386_family=3Di386 @@ -167,14 +189,16 @@ qemu_get_family() { usage() { cat <&2 - usage - exit 1 - fi - fi ;; -Q|--path) shift @@ -390,5 +400,7 @@ while true ; do shift done +shift + $CHECK -qemu_set_binfmts +qemu_set_binfmts "$@" -- 2.21.0 From nobody Sat May 18 07:09:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421497282742.7076167614108; Tue, 12 Mar 2019 13:11:37 -0700 (PDT) Received: from localhost ([127.0.0.1]:60087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nkI-0002gr-80 for importer@patchew.org; Tue, 12 Mar 2019 16:11:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nc5-0003tF-Fk for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nTq-0000o1-SO for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:54:32 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:62472 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nTn-0000jC-Kw for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:54:29 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id 36C1A38304; Tue, 12 Mar 2019 20:54:26 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0592E11004A; Tue, 12 Mar 2019 20:54:26 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ECCF8110045; Tue, 12 Mar 2019 20:54:25 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:54:25 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id 95E1C3AF0B; Tue, 12 Mar 2019 20:54:25 +0100 (CET) Date: Tue, 12 Mar 2019 19:54:26 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195426.GH8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:54:25 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No--1.679-7.0-31-10 X-imss-scan-details: No--1.679-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10--1.679100-10.000000 X-TMASE-MatchedRID: x/EPlNU2vY08mRT0SYY6fguB7zdAMUjAbYZQU1whlX9UjspoiX02F0R7 kF2MEpMASIkcopeTUu6Of30LOspw9AjZsijeXMGW2MZGQuKc8UhaNaxZBRbNWiAWlErg1VlPShc oFt7Iuk8Zw5ucm3NLWkZb9TVWKMA5HKicLVBy7TlbF+jvJlkOpkyQ5fRSh265DgB6l2o8FRhCcg 190NG0LjElClGessEfhZoMPmZo0JT7zsWX+owtEwbU2RwCZ1Hgu56wFPSkMVGtj24Xqh0yXDvd4 jBDU8JFxxTXIIUjOO8U3DI6T8C6TnrSP9RtGZYoydRP56yRRA9LxPtqS8Bm55soi2XrUn/Jn2MC CHC4423hgDVQQk8VzQtuKBGekqUpnH7sbImOEBRCegl2Je7HvjpB3kG58NK/OkzCCy8laWdnEVa refh8sQp7z5wtzlJh9hJ17oD/AFVmQXNKQL78Vma+1eGKV48YvFxfWa5U1jI30cTauf45PGeo9j jtMW5CM6tJ7nFBn5COQFE7dAFoFLAUyUg9ogFt X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:54:26 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 8/9] qemu-binfmt-conf.sh: add option --clear X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is a partial implementation. Allows to remove a single or a list of already registered binfmt interpreters. Valid values are those in qemu_target_list. If TARGETS is empty, all the existing 'qemu-*' interpreters are removed. This is partial because 'debian' and 'systemd' configurations are not supported. The script will exit with error 'option clear not implemented for this mode yet'. Removal is done by printing '-1' as explained at: https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 5d6535bfc9..16c48e13a8 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -197,7 +197,7 @@ Options and associated environment variables: Argument Env-variable Description TARGETS QEMU_TARGETS A single arch name or a list of them= (see all names below); - if empty, configure all known target= s; + if empty, configure/clear all known = targets; if 'NONE', no interpreter is configu= red. -h|--help display this usage -Q|--path PATH QEMU_PATH set path to qemu interpreter(s) @@ -206,6 +206,8 @@ TARGETS QEMU_TARGETS A single arch nam= e or a list of them (see uses are cloned from the open file. -c|--credential QEMU_CREDENTIAL (yes) credential and security tokens= are calculated according to the binary to interpret +-r|--clear QEMU_CLEAR (yes) remove registered interpreters= for target TARGETS; + then exit. -e|--exportdir PATH define where to write configuration = files (default: $SYSTEMDDIR or $DEBIANDIR) -s|--systemd don't write into /proc, generate fil= e(s) for @@ -218,6 +220,7 @@ QEMU_PATH=3D$QEMU_PATH QEMU_SUFFIX=3D$QEMU_SUFFIX QEMU_PERSISTENT=3D$QEMU_PERSISTENT QEMU_CREDENTIAL=3D$QEMU_CREDENTIAL +QEMU_CLEAR=3D$QEMU_CLEAR To import templates with update-binfmts, use : @@ -344,8 +347,22 @@ qemu_set_binfmts() { done } +qemu_clear_notimplemented() { + echo "ERROR: option clear not implemented for this mode yet" 1>&2 + usage + exit 1 +} + +qemu_clear_interpreter() { + p=3D"/proc/sys/fs/binfmt_misc/$1" + if [ -f "$p" ] ; then + printf %s -1 > "$p" + fi +} + CHECK=3Dqemu_check_bintfmt_misc BINFMT_SET=3Dqemu_register_interpreter +BINFMT_CLEAR=3Dqemu_clear_interpreter SYSTEMDDIR=3D"/etc/binfmt.d" DEBIANDIR=3D"/usr/share/binfmts" @@ -355,20 +372,26 @@ QEMU_PATH=3D"${QEMU_PATH:-/usr/local/bin}" QEMU_SUFFIX=3D"${QEMU_SUFFIX:-}" QEMU_PERSISTENT=3D"${QEMU_PERSISTENT:-no}" QEMU_CREDENTIAL=3D"${QEMU_CREDENTIAL:-no}" +QEMU_CLEAR=3D"${QEMU_CLEAR:-no}" -options=3D$(getopt -o dsQ:S:e:hcp -l debian,systemd,path:,suffix:,exportdi= r:,help,credential,persistent -- "$@") +options=3D$(getopt -o rdsQ:S:e:hcp -l clear,debian,systemd,path:,suffix:,e= xportdir:,help,credential,persistent -- "$@") eval set -- "$options" while true ; do case "$1" in + -r|--clear) + QEMU_CLEAR=3D"yes" + ;; -d|--debian) CHECK=3Dqemu_check_debian BINFMT_SET=3Dqemu_generate_debian + BINFMT_CLEAR=3Dqemu_clear_notimplemented EXPORTDIR=3D${EXPORTDIR:-$DEBIANDIR} ;; -s|--systemd) CHECK=3Dqemu_check_systemd BINFMT_SET=3Dqemu_generate_systemd + BINFMT_CLEAR=3Dqemu_clear_notimplemented EXPORTDIR=3D${EXPORTDIR:-$SYSTEMDDIR} ;; -Q|--path) @@ -403,4 +426,13 @@ done shift $CHECK + +if [ "x$QEMU_CLEAR" =3D "xyes" ] ; then + qemu_check_target_list "$@" + for t in $checked_target_list ; do + $BINFMT_CLEAR "qemu-$t" + done + exit +fi + qemu_set_binfmts "$@" -- 2.21.0 From nobody Sat May 18 07:09:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552421287050246.0098706111994; Tue, 12 Mar 2019 13:08:07 -0700 (PDT) Received: from localhost ([127.0.0.1]:59951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ngx-0007yI-Ks for importer@patchew.org; Tue, 12 Mar 2019 16:08:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nc4-0003tF-0w for qemu-devel@nongnu.org; Tue, 12 Mar 2019 16:03:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nUA-0001Ha-8k for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:54:51 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:30978 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3nU9-0001Ec-RO for qemu-devel@nongnu.org; Tue, 12 Mar 2019 15:54:50 -0400 Received: from imsva1.lgp.ehu.es (imsva1.lgp.ehu.es [10.0.3.245]) by postfix.smtp1.imsva1 (Postfix) with ESMTPS id 846313AF0B; Tue, 12 Mar 2019 20:54:48 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5428611004A; Tue, 12 Mar 2019 20:54:48 +0100 (CET) Received: from imsva1.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 47787110045; Tue, 12 Mar 2019 20:54:48 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.73]) by imsva1.lgp.ehu.es (Postfix) with ESMTPS; Tue, 12 Mar 2019 20:54:48 +0100 (CET) Received: from 99bbefa4bcea (unknown [139.47.78.33]) by smtp1 (Postfix) with ESMTPSA id F3E0C3AF0B; Tue, 12 Mar 2019 20:54:47 +0100 (CET) Date: Tue, 12 Mar 2019 19:54:48 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Message-ID: <20190312195448.GI8@99bbefa4bcea> References: <20190312195009.GA6@99bbefa4bcea> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190312195009.GA6@99bbefa4bcea> User-Agent: Mutt/1.11.2 (2019-01-07) X-Greylist: ACL 172 matched, not delayed by milter-greylist-4.4.3 (smtp1); Tue, 12 Mar 2019 20:54:48 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.2.0.1013-24486.002 X-TM-AS-Result: No--2.766-7.0-31-10 X-imss-scan-details: No--2.766-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.2.1013-24486.002 X-TMASE-Result: 10--2.765700-10.000000 X-TMASE-MatchedRID: ehvrJQ9m4PA8mRT0SYY6fguB7zdAMUjATJDl9FKHbrkOAHqXajwVGEJy DX3Q0bQuRZ3bsJ5dhK9sy3DPX9Umyv2E4cGVTliSEe5D10MltLYxmbT6wQT2a/HFoBcOsKez02b 9SFcwxUmVdYejSz2J/mFP3OsrR0xZlYSFi/RRLjcXKqR+w9a7UCtovaaHxlUrnQqircTOm4dZhL w6sxHoN/uBAQFQ9xUB363fb6EBgcmPaFHMfVTC4P7E6GNqs6ceXrupZTqDOwZ5w0EauQomR46HM 5rqDwqtAXY01CK5yMt3bHwIkevHfkO03zqdxJSeHHT35V2UcjNZQ2L2TksawmM5VX0qSXxqqZEh lyA0sEF/FwW2TdL1dU/g3m+QtkjYnd0mi9KVGdEyLP6R38uSr8pgbEscJ4OHHr9FJo47GSOeuBk 6fpRtlw== X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (postfix.smtp1.imsva1); Tue, 12 Mar 2019 20:54:48 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 158.227.0.66 Subject: [Qemu-devel] [PATCH v7 9/9] qemu-binfmt-conf.sh: add --test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Unai Martinez-Corral Reviewed-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 16c48e13a8..93fa8f30d3 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -197,8 +197,7 @@ Options and associated environment variables: Argument Env-variable Description TARGETS QEMU_TARGETS A single arch name or a list of them= (see all names below); - if empty, configure/clear all known = targets; - if 'NONE', no interpreter is configu= red. + if empty, configure/clear all known = targets. -h|--help display this usage -Q|--path PATH QEMU_PATH set path to qemu interpreter(s) -F|--suffix SUFFIX QEMU_SUFFIX add a suffix to the default interpre= ter name @@ -208,6 +207,8 @@ TARGETS QEMU_TARGETS A single arch nam= e or a list of them (see to the binary to interpret -r|--clear QEMU_CLEAR (yes) remove registered interpreters= for target TARGETS; then exit. +-t|--test QEMU_TEST (yes) test the setup with the provid= ed arguments, but do not + configure any of the interpreters. -e|--exportdir PATH define where to write configuration = files (default: $SYSTEMDDIR or $DEBIANDIR) -s|--systemd don't write into /proc, generate fil= e(s) for @@ -221,6 +222,7 @@ QEMU_SUFFIX=3D$QEMU_SUFFIX QEMU_PERSISTENT=3D$QEMU_PERSISTENT QEMU_CREDENTIAL=3D$QEMU_CREDENTIAL QEMU_CLEAR=3D$QEMU_CLEAR +QEMU_TEST=3D$QEMU_TEST To import templates with update-binfmts, use : @@ -319,9 +321,6 @@ qemu_set_binfmts() { # reduce the list of target interpreters to those given in the CLI targets=3D${@:-$QEMU_TARGET} - if [ "x$targets" =3D "xNONE" ] ; then - return - fi qemu_check_target_list $targets # register the interpreter for each target except for the native one @@ -373,12 +372,16 @@ QEMU_SUFFIX=3D"${QEMU_SUFFIX:-}" QEMU_PERSISTENT=3D"${QEMU_PERSISTENT:-no}" QEMU_CREDENTIAL=3D"${QEMU_CREDENTIAL:-no}" QEMU_CLEAR=3D"${QEMU_CLEAR:-no}" +QEMU_TEST=3D"${QEMU_TEST:-no}" -options=3D$(getopt -o rdsQ:S:e:hcp -l clear,debian,systemd,path:,suffix:,e= xportdir:,help,credential,persistent -- "$@") +options=3D$(getopt -o trdsQ:S:e:hcp -l test,clear,debian,systemd,path:,suf= fix:,exportdir:,help,credential,persistent -- "$@") eval set -- "$options" while true ; do case "$1" in + -t|--test) + QEMU_TEST=3D"yes" + ;; -r|--clear) QEMU_CLEAR=3D"yes" ;; @@ -427,6 +430,11 @@ shift $CHECK +if [ "x$QEMU_TEST" =3D "xyes" ] ; then + BINFMT_SET=3D: + BINFMT_CLEAR=3D: +fi + if [ "x$QEMU_CLEAR" =3D "xyes" ] ; then qemu_check_target_list "$@" for t in $checked_target_list ; do -- 2.21.0