From: Alexander Smirnov <asmirnov@ilbers.de>
To: <claudius.heine.ext@siemens.com>, <isar-users@googlegroups.com>
Cc: Claudius Heine <ch@denx.de>
Subject: Re: [PATCH v5 1/1] meta-isar/isar-image-base: added removal of qemu-*-static binaries
Date: Mon, 28 May 2018 13:41:59 +0300 [thread overview]
Message-ID: <163a65720f0.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de> (raw)
In-Reply-To: <20180524142112.5679-2-claudius.heine.ext@siemens.com>
claudius.heine.ext@siemens.com 24 мая 2018 г. 17:21:26 написал:
> From: Claudius Heine <ch@denx.de>
>
> 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 <henning.schild@siemens.com>
> Signed-off-by: Claudius Heine <ch@denx.de>
Applied to next, thanks.
Alex
> ---
> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to isar-users+unsubscribe@googlegroups.com.
> To post to this group, send email to isar-users@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/isar-users/20180524142112.5679-2-claudius.heine.ext%40siemens.com.
> For more options, visit https://groups.google.com/d/optout.
prev parent reply other threads:[~2018-05-28 10:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 14:21 [PATCH v5 0/1] Cleanup of the configscripts claudius.heine.ext
2018-05-24 14:21 ` [PATCH v5 1/1] meta-isar/isar-image-base: added removal of qemu-*-static binaries claudius.heine.ext
2018-05-24 14:28 ` Henning Schild
2018-05-28 10:41 ` Alexander Smirnov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=163a65720f0.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de \
--to=asmirnov@ilbers.de \
--cc=ch@denx.de \
--cc=claudius.heine.ext@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox