From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6543453521082056704 X-Received: by 2002:a1c:b883:: with SMTP id i125-v6mr1098250wmf.12.1526298451574; Mon, 14 May 2018 04:47:31 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f512:: with SMTP id t18-v6ls1508402wmh.10.gmail; Mon, 14 May 2018 04:47:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrKIC9s3ogIVFhGq3BEmqzwKquNSQ5EkTXxifscN6J0thqF1xGAUpXFjVYcSwRtYOkHqkqF X-Received: by 2002:a1c:b0e:: with SMTP id 14-v6mr1142256wml.12.1526298450983; Mon, 14 May 2018 04:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526298450; cv=none; d=google.com; s=arc-20160816; b=iW5sL+2hy5sYLe1/TsJGrFvXCnE9Yed7acAc1w2EeQzfBmN0ma8U/UO2YJv5opMDcI 42p2Y1xf8sH7c0eoroUZBxFygCFQLRdcvBnEf1+KiTXgUowGT5dvwRYGtrrLQ8Bs3ifh cuMK+D81kRy1J4FSkQ8Ynhg0B+BvFsRqbS5AyebOBjUakDKf/SMLH4ANRejMd2sarfK9 azw3qGIpOViB1YMR8jjC1AiHjHHlMD6K/LAGEJx9RCgx9Qo65VDwLb9+ztNCPe3OU5z2 hzX+JTeCjb6hObtcGA8gtLTmqUcUd7g0+7Xri8Ei+WsmIBz2OZ7kBDZmdOcglooLiYDK X4ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :arc-authentication-results; bh=o94dPqf6dFEGvdiMzWrNIqRxi909jJxoHI7mulTxMZE=; b=1IprHcWLntIvHK4TJnwiSDiFwVResaRf1zspTxF5t1WwDPRkMXfwuNQRm+k/ajZCW2 UGNYT1WItae2p8MIvsBNaZDG0uffY2Lzdgk/nzdAWAItbCNSmjk1w2U1bWcrAyG1Dd+v 0C8cob4b72/N4mDtv+5a9/FZht8PdM5nCjAF8XIFCkOYvws2XYXVCRoscWxDbP58gEvg oz6yPHKC8Y1OPNxz+RiNpRZPs+Po8n5toCSwJ4Zkusm5zplL7lTI15egYUfVH/L5n0Ig Hwk0oL3Y4MlYT6/FSaoqx/778/CdlQM9/zljR3T89pmhaROmzUbSG1M3GQiF9MGfHp6f 2LSg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id p17-v6si535731wmd.2.2018.05.14.04.47.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 04:47:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w4EBlRFQ011492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 14 May 2018 13:47:28 +0200 Subject: Re: [PATCH v3 2/2] meta-isar/*-configscript: added removal of qemu-*-static binaries To: claudius.heine.ext@siemens.com, isar-users@googlegroups.com Cc: Claudius Heine References: <20180412070121.31332-1-claudius.heine.ext@siemens.com> <20180412070121.31332-3-claudius.heine.ext@siemens.com> From: Alexander Smirnov Message-ID: <954c05a0-57b2-086e-cf20-be1e6b7a4032@ilbers.de> Date: Mon, 14 May 2018 14:47:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180412070121.31332-3-claudius.heine.ext@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: jFF30pASNzCc Hi, On 04/12/2018 10:01 AM, claudius.heine.ext@siemens.com wrote: > 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. > > Reported-by: Henning Schild > Signed-off-by: Claudius Heine > --- > meta-isar/recipes-core/images/files/debian-configscript.sh | 3 +++ > meta-isar/recipes-core/images/files/raspbian-configscript.sh | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/meta-isar/recipes-core/images/files/debian-configscript.sh b/meta-isar/recipes-core/images/files/debian-configscript.sh > index 042b530..e6d5335 100755 > --- a/meta-isar/recipes-core/images/files/debian-configscript.sh > +++ b/meta-isar/recipes-core/images/files/debian-configscript.sh > @@ -63,3 +63,6 @@ fi > # Purge unused locale and installed packages' .deb files > localepurge > apt-get clean > + > +# Remove qemu-*-static: > +find /usr/bin -maxdepth 1 -name 'qemu-*-static' -delete If user requested to install 'qemu-user-static' package via IMAGE_INSTALL, this line will totally corrupt it. I think that the additional check like `dpkg -S xxx` before removing could help to avoid this. Alex > diff --git a/meta-isar/recipes-core/images/files/raspbian-configscript.sh b/meta-isar/recipes-core/images/files/raspbian-configscript.sh > index ec05a6b..d7bdc07 100644 > --- a/meta-isar/recipes-core/images/files/raspbian-configscript.sh > +++ b/meta-isar/recipes-core/images/files/raspbian-configscript.sh > @@ -63,3 +63,6 @@ EOF > > localepurge > apt-get clean > + > +# Remove qemu-*-static: > +find /usr/bin -maxdepth 1 -name 'qemu-*-static' -delete