Hi,

I'm trying to get a multiconfig setup working with initramfs.  The docs
imply I can have a main image with glibc and initramfs image with musl.
The main image inherits DISTRO_FEATURES policy from local.conf and the
initramfs image inherits different DISTRO_FEATURES from the multconfig
.conf file.

I tried this with a single multiconfig file per the docs (initramfs.conf),
setting TCLIBC and choosing the init manager to be sysvinit, dev manager as
udev, DISTRO_FEATURES_BACKFILL_CONSIDERED=" system", etc.

Meanwhile, for the main image in local.conf, I set mostly the opposite with
systemd as the init manager and DISTROFEATURES_BACKFILL_CONSIDERED="
sysvinit", etc.

I have a custom initramfs image recipe that really just sets debug-tweaks
and uses PACKAGE_INSTALL to include only packagegroup-core-boot items.

When I kick off the build with bitbake mc:initramfs:initramfs-image, it
appears the DISTRO_FEATURES in local.conf seem to override those in my
initramfs.conf file.  I get a warning about musl and systemd, so something
is pulling in systemd to my initramfs build.

Now, if I make a second multiconfig for the main image and move the
DISTRO_FEATURES and init manager stuff to main.conf, I no longer see the
warning.

So why are the local.conf settings overriding the mulitconfig settings and
why does this seem to disagree with the docs?

Second issue is that according to the docs setting the INITRAMFS_IMAGE
variable "in the recipe that builds the kernel" will cause a mulitconfig
dependency to automatically build the initramfs image.

I have the following set in local.conf:
INITRAMFS_IMAGE_BUNDLE = "1"
INITRAMFS_MULTICONFIG = "initramfs"
INITRAMFS_DEPLOY_DIR_IMAGE =
"${TOPDIR}/tmp-initramfs/deploy/images/${MACHINE}"

and in my kernel .bbappend I have:
INITRAMFS_IMAGE = "initramfs-image"

But, I get an error after issuing bitbake mc:main:base-image that
do_bundle_initramfs could not find the cpio archive in tmp-initramfs/...

Looking in the tmp-initramfs deploy and work directories, the
initramfs-image is not being built at all.

Any idea why its not being pulled in as a dependency?

Does anyone have an example meta layer with multiconfig that builds an
initramfs and main image?

Thanks, Matt.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61867): https://lists.yoctoproject.org/g/yocto/message/61867
Mute This Topic: https://lists.yoctoproject.org/mt/103137021/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to