I am trying to build a self-installing Yocto image.  I started by following
this blog

https://www.thegoodpenguin.co.uk/blog/self-installing-yocto-image-from-a-usb-drive/

and that worked fine.  However I need to change my main image to use the
full set of packages instead of the busybox ones.  So I set

#
# Use a full set of packages instead of busybox for base utils
#
PREFERRED_PROVIDER_base-utils = "packagegroup-core-base-utils"
VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
VIRTUAL-RUNTIME_base-utils-hwclock = "util-linux-hwclock"
VIRTUAL-RUNTIME_base-utils-syslog = ""


But that bleeds over into the intramfs image.  I am trying to use the
multiconfig setup for the initramfs which I have done and it in fact does
built the core-image-minimal-initramfs which I have
building in ${TOPDIR}/tmp-initramfs.

The problem that I am having is that when wic is run, it is looking in the
DEPLOY_DIR_IMAGE of my main image and the wic copy step fails.  This is in
the "boot-efi.py" wic plugin:

        if initrd:
            bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE")
            if not bootimg_dir:
                raise WicError("Couldn't find DEPLOY_DIR_IMAGE, exiting")

            initrds = initrd.split(';')
            for rd in initrds:
                cp_cmd = "cp %s/%s %s" % (bootimg_dir, rd, hdddir)
                exec_cmd(cp_cmd, True)


That is hard coded to look in DEPLOY_DIR_IMAGE which for a multiconfig
build is not the correct value.

I am wondering what I can do to get this to work and any suggestions will
be most appreciated.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63245): https://lists.yoctoproject.org/g/yocto/message/63245
Mute This Topic: https://lists.yoctoproject.org/mt/106399683/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to