Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B94BAC25B7B for ; Wed, 15 May 2024 12:34:12 +0000 (UTC) Subject: Re: Running chroot-like command in Yocto #yocto To: poky@lists.yoctoproject.org From: "Nicolas Wirth" X-Originating-Location: Baechli, Nidwalden, CH (146.4.107.86) X-Originating-Platform: Windows Chrome 124 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 15 May 2024 05:34:07 -0700 References: In-Reply-To: Message-ID: <19808.1715776447222316220@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="dD0f1LBXWIPEsYLEmKHM" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 May 2024 12:34:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13351 --dD0f1LBXWIPEsYLEmKHM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Really good point, my example can be misleading. I didn't wanted to add con= fusion 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 --dD0f1LBXWIPEsYLEmKHM Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

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 extlin= ux --install ${IMAGE_ROOTFS}/boot/syslinux, as I've understo= od, 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 th= at using the following code and now I'm trying to reproduce that in the Yoc= to build system:

  - action: run
    description: Set u= p Syslinux
    chroot: true
    command: extlinux = --install /boot/syslinux
--dD0f1LBXWIPEsYLEmKHM--