On Sat, Apr 25, 2020 at 12:30 AM Khem Raj <raj.k...@gmail.com> wrote: > > On Thu, Apr 23, 2020 at 4:55 PM Andrea Adami <andrea.ad...@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.ad...@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 > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#84082): https://lists.openembedded.org/g/openembedded-devel/message/84082 Mute This Topic: https://lists.openembedded.org/mt/73230971/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-