public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v5 0/1] Cleanup of the configscripts
@ 2018-05-24 14:21 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
  0 siblings, 1 reply; 4+ messages in thread
From: claudius.heine.ext @ 2018-05-24 14:21 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

From: Claudius Heine <ch@denx.de>

Hi,

here is the new version of the qemu-*-static removal patch.

Now the qemu-*-static binaries should only be removed if the
qemu-user-static package was not installed. I detected its installation
state via the /usr/share/doc/qemu-user-static directory.

Claudius

Changes on v4:
  - Removed merged patch 1 (meta-isar/isar-image-base: remove
    uncesessary cmd lines from cfg scripts)
  - Only remove qemu-*-static if qemu-user-static is not installed on
    image

Changes on v3:
  - Moved qemu-*-static removal to isar-image-base

Changes on v2:
  - Added removal of qemu-*-static command to debian-configscript.sh

Changes on v1:
  - Added removal of qemu-arm-static command to raspbian-configscript.sh

Claudius Heine (1):
  meta-isar/isar-image-base: added removal of qemu-*-static binaries

 meta-isar/recipes-core/images/isar-image-base.bb | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.17.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v5 1/1] meta-isar/isar-image-base: added removal of qemu-*-static binaries
  2018-05-24 14:21 [PATCH v5 0/1] Cleanup of the configscripts claudius.heine.ext
@ 2018-05-24 14:21 ` claudius.heine.ext
  2018-05-24 14:28   ` Henning Schild
  2018-05-28 10:41   ` Alexander Smirnov
  0 siblings, 2 replies; 4+ messages in thread
From: claudius.heine.ext @ 2018-05-24 14:21 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

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>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v5 1/1] meta-isar/isar-image-base: added removal of qemu-*-static binaries
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Henning Schild @ 2018-05-24 14:28 UTC (permalink / raw)
  To: [ext] claudius.heine.ext@siemens.com; +Cc: isar-users, Claudius Heine

LGTM

Am Thu, 24 May 2018 16:21:12 +0200
schrieb "[ext] claudius.heine.ext@siemens.com"
<claudius.heine.ext@siemens.com>:

> 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>
> ---
>  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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v5 1/1] meta-isar/isar-image-base: added removal of qemu-*-static binaries
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Smirnov @ 2018-05-28 10:41 UTC (permalink / raw)
  To: claudius.heine.ext, isar-users; +Cc: Claudius Heine


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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-28 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox