Re: [poky] Running chroot-like command in Yocto #yocto
Ross Burton <[email protected]>
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <[email protected]> |
> On 15 May 2024, at 13:34, Nicolas Wirth via lists.yoctoproject.org <[email protected]> wrote: > > Really good point, my example can be misleading. I didn't wanted to add confusion by fully explaining my goal. > > The goal is to run extlinux --install ${IMAGE_ROOTFS}/boot/syslinux, as I've understood, this command install the sylinux required file but also does write some bytes at the start of the partition, for the MBR. In debbos, I could do that using the following code and now I'm trying to reproduce that in the Yocto build system: > - action: run > description: Set up Syslinux > chroot: true > command: extlinux --install /boot/syslinux The syslinux class already basically does a lot of this. If you want to do something bespoke and custom you just ensure do_image depends on syslinux-native and run the commands in an IMAGE_POSTPROCESS_COMMAND. But if you’re generating the correct image type then this will be done already. Ross