Re: [poky] Running chroot-like command in Yocto #yocto
Alexander Kanavin <[email protected]>
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <CANNYZj_14fsnt6RV1cZyf0qSFD=58MBh59LammMkrGx53DHXng@mail.gmail.com> |
On Wed, 15 May 2024 at 14:14, Nicolas Wirth via lists.yoctoproject.org <[email protected]> wrote: > I would like to run a command that has to use my target-generated tools and on my target-generated rootfs. For example, I would like to install an utility such as IMAGE_INSTALL = "unzip" and then run a command such as "${IMAGE_ROOTFS}/usr/bin/unzip ${IMAGE_ROOTFS}/home/user/test.zip" in ROOTFS_POSTPROCESS_COMMAND or IMAGE_POSTPROCESS_COMMAND . > > Do you have any advices ? It would be good to understand why this can't be done in a recipe, and why you need to run target unzip and not native one. E.g. you can unpack the zip in a recipe, then package the contents and install those packages into the image, where they will be unpacked in do_rootfs as any other packages are. Alex