Re: [poky] Running chroot-like command in Yocto #yocto
Alexander Kanavin <[email protected]>
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <CANNYZj8_HTT8Us+ko0s-ffw4hGg-iGZ9OscU17T8kVrpV06kXA@mail.gmail.com> |
I have no idea what this does, but MBR is not a file in the root filesystem, it's data structure in the first disk sector. Unfortunately I don't remember how legacy pre-UEFI ootloaders are installed 'offline' during yocto builds. Can you do this on target during first boot? Alex On Wed, 15 May 2024 at 14: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 > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#13351): https://lists.yoctoproject.org/g/poky/message/13351 > Mute This Topic: https://lists.yoctoproject.org/mt/106112604/1686489 > Mute #yocto:https://lists.yoctoproject.org/g/poky/mutehashtag/yocto > Group Owner: [email protected] > Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]] > -=-=-=-=-=-=-=-=-=-=-=- >