* [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities
@ 2020-04-23 23:55 Andrea Adami
2020-04-24 22:30 ` [oe] " Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Andrea Adami @ 2020-04-23 23:55 UTC (permalink / raw)
To: openembedded-devel; +Cc: Andrea Adami
klibc utils have no update-alternatives because these live ideally alone
in th einitramfs. This image is not minimal having busybox, linux-utils,
coreutils so to resolve the conflict we just remove the shared klibc utils
and replace the klibc kexec and vmcore-dmesg.
Finally, remove EXCLUDE_FROM_WORLD.
Fix:
ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
Postinstall scriptlets of ['busybox', 'util-linux-umount', 'util-linux-dmesg',
'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
'util-linux-losetup'] have failed.
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
.../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
index bfede5a74..dc4928b5a 100644
--- a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
+++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
@@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
"
RDEPENDS_packagegroup-meta-initramfs-devtools = "\
- libklibc dracut \
- klibc-utils-cat klibc-utils-losetup klibc-utils-readlink klibc-utils-chroot \
- klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
- klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init \
- klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared klibc-utils-false \
- klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount \
- klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true klibc-utils-ipconfig \
- klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill klibc-utils-nuke klibc-utils-uname \
- mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
- ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
- ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
+ dracut \
${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", "grubby", "", d)} \
"
RDEPENDS_packagegroup-meta-initramfs-kernel = "\
- kexec-klibc vmcore-dmesg-klibc \
+ kexec vmcore-dmesg \
"
-
-EXCLUDE_FROM_WORLD = "1"
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [oe] [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities
2020-04-23 23:55 [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities Andrea Adami
@ 2020-04-24 22:30 ` Khem Raj
2020-04-25 13:09 ` Andrea Adami
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-04-24 22:30 UTC (permalink / raw)
To: Andrea Adami; +Cc: openembeded-devel
On Thu, Apr 23, 2020 at 4:55 PM Andrea Adami <andrea.adami@gmail.com> wrote:
>
> klibc utils have no update-alternatives because these live ideally alone
> in th einitramfs. This image is not minimal having busybox, linux-utils,
> coreutils so to resolve the conflict we just remove the shared klibc utils
> and replace the klibc kexec and vmcore-dmesg.
>
> Finally, remove EXCLUDE_FROM_WORLD.
>
> Fix:
> ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
> Postinstall scriptlets of ['busybox', 'util-linux-umount', 'util-linux-dmesg',
> 'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
> 'util-linux-losetup'] have failed.
>
> Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> ---
> .../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--------------
> 1 file changed, 2 insertions(+), 14 deletions(-)
>
> diff --git a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> index bfede5a74..dc4928b5a 100644
> --- a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> +++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> @@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
> "
>
> RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> - libklibc dracut \
> - klibc-utils-cat klibc-utils-losetup klibc-utils-readlink klibc-utils-chroot \
> - klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
> - klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init \
> - klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared klibc-utils-false \
> - klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount \
> - klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true klibc-utils-ipconfig \
> - klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill klibc-utils-nuke klibc-utils-uname \
> - mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
> - ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
> - ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> + dracut \
> ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", "grubby", "", d)} \
> "
>
> RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> - kexec-klibc vmcore-dmesg-klibc \
> + kexec vmcore-dmesg \
this creates a dependency on kexec-tools from oe-core, this however is
not buildable on some arches e.g. riscv
so this change does not work as such, I think you can only add it as
dependency where its supported.
> "
> -
> -EXCLUDE_FROM_WORLD = "1"
> --
> 2.17.1
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [oe] [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities
2020-04-24 22:30 ` [oe] " Khem Raj
@ 2020-04-25 13:09 ` Andrea Adami
2020-04-25 15:28 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Andrea Adami @ 2020-04-25 13:09 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
On Sat, Apr 25, 2020 at 12:30 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Thu, Apr 23, 2020 at 4:55 PM Andrea Adami <andrea.adami@gmail.com> wrote:
> >
> > klibc utils have no update-alternatives because these live ideally alone
> > in th einitramfs. This image is not minimal having busybox, linux-utils,
> > coreutils so to resolve the conflict we just remove the shared klibc utils
> > and replace the klibc kexec and vmcore-dmesg.
> >
> > Finally, remove EXCLUDE_FROM_WORLD.
> >
> > Fix:
> > ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
> > Postinstall scriptlets of ['busybox', 'util-linux-umount', 'util-linux-dmesg',
> > 'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
> > 'util-linux-losetup'] have failed.
> >
> > Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> > ---
> > .../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--------------
> > 1 file changed, 2 insertions(+), 14 deletions(-)
> >
> > diff --git a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > index bfede5a74..dc4928b5a 100644
> > --- a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > +++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > @@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
> > "
> >
> > RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> > - libklibc dracut \
> > - klibc-utils-cat klibc-utils-losetup klibc-utils-readlink klibc-utils-chroot \
> > - klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
> > - klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init \
> > - klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared klibc-utils-false \
> > - klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount \
> > - klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true klibc-utils-ipconfig \
> > - klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill klibc-utils-nuke klibc-utils-uname \
> > - mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
> > - ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
> > - ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> > + dracut \
> > ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", "grubby", "", d)} \
> > "
> >
> > RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> > - kexec-klibc vmcore-dmesg-klibc \
> > + kexec vmcore-dmesg \
>
> this creates a dependency on kexec-tools from oe-core, this however is
> not buildable on some arches e.g. riscv
> so this change does not work as such, I think you can only add it as
> dependency where its supported.
>
Well, the problem was already there, kexec-tools klibc and oe-core both have
COMPATIBLE_HOST =
'(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)'
I really have no idea about the image purposes, I see there is dracut
which seems to be buildable for most archs and does not have runtime
deps on kexec-tools.
Maybe we can just remove kexec and vmcore-dmesg
Cheers
Andrea
> > "
> > -
> > -EXCLUDE_FROM_WORLD = "1"
> > --
> > 2.17.1
> >
> >
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [oe] [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities
2020-04-25 13:09 ` Andrea Adami
@ 2020-04-25 15:28 ` Khem Raj
2020-04-27 20:40 ` Andrea Adami
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-04-25 15:28 UTC (permalink / raw)
To: Andrea Adami; +Cc: openembeded-devel
On Sat, Apr 25, 2020 at 6:10 AM Andrea Adami <andrea.adami@gmail.com> wrote:
>
> On Sat, Apr 25, 2020 at 12:30 AM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Thu, Apr 23, 2020 at 4:55 PM Andrea Adami <andrea.adami@gmail.com> wrote:
> > >
> > > klibc utils have no update-alternatives because these live ideally alone
> > > in th einitramfs. This image is not minimal having busybox, linux-utils,
> > > coreutils so to resolve the conflict we just remove the shared klibc utils
> > > and replace the klibc kexec and vmcore-dmesg.
> > >
> > > Finally, remove EXCLUDE_FROM_WORLD.
> > >
> > > Fix:
> > > ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
> > > Postinstall scriptlets of ['busybox', 'util-linux-umount', 'util-linux-dmesg',
> > > 'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
> > > 'util-linux-losetup'] have failed.
> > >
> > > Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> > > ---
> > > .../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--------------
> > > 1 file changed, 2 insertions(+), 14 deletions(-)
> > >
> > > diff --git a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > index bfede5a74..dc4928b5a 100644
> > > --- a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > +++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > @@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
> > > "
> > >
> > > RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> > > - libklibc dracut \
> > > - klibc-utils-cat klibc-utils-losetup klibc-utils-readlink klibc-utils-chroot \
> > > - klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
> > > - klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init \
> > > - klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared klibc-utils-false \
> > > - klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount \
> > > - klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true klibc-utils-ipconfig \
> > > - klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill klibc-utils-nuke klibc-utils-uname \
> > > - mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
> > > - ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
> > > - ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> > > + dracut \
> > > ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", "grubby", "", d)} \
> > > "
> > >
> > > RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> > > - kexec-klibc vmcore-dmesg-klibc \
> > > + kexec vmcore-dmesg \
> >
> > this creates a dependency on kexec-tools from oe-core, this however is
> > not buildable on some arches e.g. riscv
> > so this change does not work as such, I think you can only add it as
> > dependency where its supported.
> >
>
> Well, the problem was already there, kexec-tools klibc and oe-core both have
>
> COMPATIBLE_HOST =
> '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)'
>
>
> I really have no idea about the image purposes, I see there is dracut
> which seems to be buildable for most archs and does not have runtime
> deps on kexec-tools.
> Maybe we can just remove kexec and vmcore-dmesg
>
these were mainly for testing builds of the given layer. So I think
removing kexec and vmcore-dmesg is ok
> Cheers
> Andrea
>
>
>
> > > "
> > > -
> > > -EXCLUDE_FROM_WORLD = "1"
> > > --
> > > 2.17.1
> > >
> > >
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [oe] [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities
2020-04-25 15:28 ` Khem Raj
@ 2020-04-27 20:40 ` Andrea Adami
0 siblings, 0 replies; 5+ messages in thread
From: Andrea Adami @ 2020-04-27 20:40 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
Khem,
please disregard this patch as superseded, a new one specific for the
packagegroup is coming.
Thanks!
Andres
On Sat, Apr 25, 2020 at 5:28 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Sat, Apr 25, 2020 at 6:10 AM Andrea Adami <andrea.adami@gmail.com> wrote:
> >
> > On Sat, Apr 25, 2020 at 12:30 AM Khem Raj <raj.khem@gmail.com> wrote:
> > >
> > > On Thu, Apr 23, 2020 at 4:55 PM Andrea Adami <andrea.adami@gmail.com> wrote:
> > > >
> > > > klibc utils have no update-alternatives because these live ideally alone
> > > > in th einitramfs. This image is not minimal having busybox, linux-utils,
> > > > coreutils so to resolve the conflict we just remove the shared klibc utils
> > > > and replace the klibc kexec and vmcore-dmesg.
> > > >
> > > > Finally, remove EXCLUDE_FROM_WORLD.
> > > >
> > > > Fix:
> > > > ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
> > > > Postinstall scriptlets of ['busybox', 'util-linux-umount', 'util-linux-dmesg',
> > > > 'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
> > > > 'util-linux-losetup'] have failed.
> > > >
> > > > Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> > > > ---
> > > > .../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--------------
> > > > 1 file changed, 2 insertions(+), 14 deletions(-)
> > > >
> > > > diff --git a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > > index bfede5a74..dc4928b5a 100644
> > > > --- a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > > +++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > > @@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
> > > > "
> > > >
> > > > RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> > > > - libklibc dracut \
> > > > - klibc-utils-cat klibc-utils-losetup klibc-utils-readlink klibc-utils-chroot \
> > > > - klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
> > > > - klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init \
> > > > - klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared klibc-utils-false \
> > > > - klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount \
> > > > - klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true klibc-utils-ipconfig \
> > > > - klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill klibc-utils-nuke klibc-utils-uname \
> > > > - mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
> > > > - ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
> > > > - ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> > > > + dracut \
> > > > ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", "grubby", "", d)} \
> > > > "
> > > >
> > > > RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> > > > - kexec-klibc vmcore-dmesg-klibc \
> > > > + kexec vmcore-dmesg \
> > >
> > > this creates a dependency on kexec-tools from oe-core, this however is
> > > not buildable on some arches e.g. riscv
> > > so this change does not work as such, I think you can only add it as
> > > dependency where its supported.
> > >
> >
> > Well, the problem was already there, kexec-tools klibc and oe-core both have
> >
> > COMPATIBLE_HOST =
> > '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)'
> >
> >
> > I really have no idea about the image purposes, I see there is dracut
> > which seems to be buildable for most archs and does not have runtime
> > deps on kexec-tools.
> > Maybe we can just remove kexec and vmcore-dmesg
> >
>
> these were mainly for testing builds of the given layer. So I think
> removing kexec and vmcore-dmesg is ok
>
> > Cheers
> > Andrea
> >
> >
> >
> > > > "
> > > > -
> > > > -EXCLUDE_FROM_WORLD = "1"
> > > > --
> > > > 2.17.1
> > > >
> > > >
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-27 20:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23 23:55 [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities Andrea Adami
2020-04-24 22:30 ` [oe] " Khem Raj
2020-04-25 13:09 ` Andrea Adami
2020-04-25 15:28 ` Khem Raj
2020-04-27 20:40 ` Andrea Adami
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.