From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6559152404745420800 X-Received: by 2002:a2e:501c:: with SMTP id e28-v6mr419864ljb.13.1527172132372; Thu, 24 May 2018 07:28:52 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:2f03:: with SMTP id v3-v6ls2577135ljv.2.gmail; Thu, 24 May 2018 07:28:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp19WzRnCYzrOHQv+V7UiIyQxOlvjEsIXidQCXEzBIJiEhPawPzZqQuTLi9gTl2tJ1Xpa0s X-Received: by 2002:a2e:9455:: with SMTP id o21-v6mr436837ljh.34.1527172131936; Thu, 24 May 2018 07:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527172131; cv=none; d=google.com; s=arc-20160816; b=NssgTT/slmgcCuFWOzFShnSdKU8HhqZVX8zS3Xhq3SRvs1Iag/TIIcqX+hTVBLuTCQ lpHfrzXw8LeVISlPG3TgxURgJSIjx9ALq+rKVWBqVx6SXsJnqwFYwtN02joFVZdzySmh rAyzSl5dNWuwoX2KHGutC+admPtUwp/Sp+dg/BLP9oyTGjfSXF2IEzga899bDvsi3txp YuYjnOaez0Bd0DAKTZfceH/WnGZr7sLUaOPcqNMO7gqAZPAqLXkZg7I05OP4bG2ODlv1 m8td8FdQJTQ1mZotGGiArSE9VWNO+wAwy1bKBlj4WgoNnhbnHmP8RzgaGW60AlAYKiX/ AX1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=FrUtMunkkbZQ++D26JFaPskbC9+FEbUeWJmTiUNwsfE=; b=YKIN0oBU/oPdDNEEHnnBpQ3uCtt+gjLq0FjJ3bTB/oNNW+UdPZHEtYWGWR9lhRO4e7 AlfdO1WKSNPxptfImYGuDOLwj+Rmpfh4TxIBcX0LtrbCHniNhi42m5gvwF6GI9gqaMWM alzFi27KLWkX0BzS+0gm3yviXp/j3QEi9Qs+Y1JhsQ+uib44/v0HiyJ7H2fqGRIBDN3Y Zsc8bN37xDUz/C0Gz0kYpxZvx+DwiT98egvnXtvZprWSwFHjS4gNO4ei7KPV86vz4h7s qDUK8FROA7gpLHYkqY34PzM8OSvFzv7gtYnlSHPb6nw0QnGFcS+Wa0AWvcah/8huYmBD oj6A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id i26-v6si1043844ljj.2.2018.05.24.07.28.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 07:28:51 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w4OESod6030224 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 May 2018 16:28:50 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w4OESn4U005791; Thu, 24 May 2018 16:28:49 +0200 Date: Thu, 24 May 2018 16:28:48 +0200 From: Henning Schild To: "[ext] claudius.heine.ext@siemens.com" Cc: , Claudius Heine Subject: Re: [PATCH v5 1/1] meta-isar/isar-image-base: added removal of qemu-*-static binaries Message-ID: <20180524162848.74039953@md1pvb1c.ad001.siemens.net> In-Reply-To: <20180524142112.5679-2-claudius.heine.ext@siemens.com> References: <20180524142112.5679-1-claudius.heine.ext@siemens.com> <20180524142112.5679-2-claudius.heine.ext@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: I6hA6iv879Qi LGTM Am Thu, 24 May 2018 16:21:12 +0200 schrieb "[ext] claudius.heine.ext@siemens.com" : > From: Claudius Heine > > After the image has finished building, the qemu-*-static binaries that > are installed by quemu-debootstrap can be removed because they are no > longer needed. > > If this binary is overwritten by installing qemu-user-static into the > image, then this binary is not removed. (This is possible if the > binfmt_misc entry for this architecture has the 'F' flag. In that case > qemu-*-static shouldn't even be deployed by qemu-debootstrap.) > > Reported-by: Henning Schild > Signed-off-by: Claudius Heine > --- > meta-isar/recipes-core/images/isar-image-base.bb | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/meta-isar/recipes-core/images/isar-image-base.bb > b/meta-isar/recipes-core/images/isar-image-base.bb index > 5ad6df3..1239f72 100644 --- > a/meta-isar/recipes-core/images/isar-image-base.bb +++ > b/meta-isar/recipes-core/images/isar-image-base.bb @@ -41,6 +41,9 @@ > do_rootfs() { # Cleanup > sudo rm "${IMAGE_ROOTFS}/${DISTRO_CONFIG_SCRIPT}" > sudo rm "${IMAGE_ROOTFS}/etc/apt/sources.list.d/isar-apt.list" > + test ! -e "${IMAGE_ROOTFS}/usr/share/doc/qemu-user-static" && \ > + sudo find "${IMAGE_ROOTFS}/usr/bin" \ > + -maxdepth 1 -name 'qemu-*-static' -type f -delete > sudo umount -l ${IMAGE_ROOTFS}/isar-apt > sudo rmdir ${IMAGE_ROOTFS}/isar-apt > sudo umount -l ${IMAGE_ROOTFS}/dev