From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6559152404745420800 X-Received: by 2002:adf:c991:: with SMTP id f17-v6mr764100wrh.26.1527171677278; Thu, 24 May 2018 07:21:17 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:d78d:: with SMTP id o135-v6ls3691937wmg.5.canary-gmail; Thu, 24 May 2018 07:21:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq5LoQgIWtou1QFvEx7phPBdVfJetRUKARSIUG1j72fv4yz/U6XcbYaFUDVS4omM1cQcj5G X-Received: by 2002:a1c:eb07:: with SMTP id j7-v6mr973522wmh.19.1527171676799; Thu, 24 May 2018 07:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527171676; cv=none; d=google.com; s=arc-20160816; b=w1mBYZ9IKXLVuJVBEAjCElaawH/gB6DiPxxe8ydZQVxCMtpOirQUmrYN1i8YzTGKE1 o+3ACy1fLJPxCjy+x1fpaOJsILMManJ7TUUUqoGY/d/hs50jtggohRMN2X111wcCiGPI f58PC44TLOWoh0c/6eCe8148UTrqJDIqA46RRelEcf31zoIfrLJ6B0yTQTCjsyRo8SzY puRZVzPgk2N9hhhX9EAOeurzFQTcD/B+BtKeLticoVJsCX3uiDG5h9zHEI9Y8Mg0/u7M zINSHUiLWEt2nqes3t7zhcOOxgBn1TBGlDn0Lsom4arDwWAkoQgyMdOcztd/fL8yQpBT FAkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uURAM17gE6/VCJ0R9kubr7VC4NEwa8ljt/M+1xeeVlw=; b=RZ5/PKOiOB4gVWDFeFRWddP4T6+weRM0nl+97Qwca7GbNKxz/TljNGKfLjTt8NqpWZ /G1nqEuJ8NSHczMdS+nFXYX5KQ/y2Iro9pOsRctUvozET7Q8t8WGDHXQ6cvAtRgrWRfQ ZgqIcDW9L/gOWiW/+qd5HgQUyOh9W9zRMJlJ29ruqy+da1QepJvdD5S4CSjIjMLs+RTj +yUy7PqXxsC007DWzrrxhkIqNJ/+wRbQKigIG6x/HTWz5v+/R0vs5HYydeapTYUVBjjC aERVVRPsv5vP/GmpUtyT/taX1wZE5iu+SMQmB59IatPkQrmwi8ETflETkGVrP5YzYL9Y +mXQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id c83-v6si213869wmd.1.2018.05.24.07.21.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 07:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id w4OELFUL000375 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 May 2018 16:21:15 +0200 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w4OELEVf022064; Thu, 24 May 2018 16:21:15 +0200 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [PATCH v5 1/1] meta-isar/isar-image-base: added removal of qemu-*-static binaries Date: Thu, 24 May 2018 16:21:12 +0200 Message-Id: <20180524142112.5679-2-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524142112.5679-1-claudius.heine.ext@siemens.com> References: <20180524142112.5679-1-claudius.heine.ext@siemens.com> X-TUID: sz5kRjG5lvzZ 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 -- 2.17.0