Re: [yocto] Simple solution to create a non-root partition image?
"Francesco Cervigni" <[email protected]> Mon, 04 May 2026 07:05:08 -0700
| Newsgroups | org.yoctoproject.lists.yocto |
|---|---|
| Message-ID | <[email protected]> |
Hi Michael, Would a non-yocto process, so non-wic, approach might still be relevant as generic inspiration ? There is a part of the script of Photonicat2 router image creation (Rockchip rk3568, Debian, not my code) that I have looked at often. In a pretty readable and straightforward sequence of lines it assembles the disk with the use of sfdisk + manual adiddtions via dd . (that whole small repo is very explicit and simple in what it does, good read imho) https://github.com/photonicat/rockchip_rk3568_linux_mainline/blob/master/build-image-custom-rootfs-full.sh#L57 What caught my eyes, also, is that in that case sfdisk is used declaratively, where the partition description is kept separatedly at https://github.com/photonicat/rockchip_rk3568_linux_mainline/blob/master/scripts/photonicat-disk-parts-full.sfdisk allowing for easier extension, as the .wic ones. Furthermore: In regards to 'moving the files' from folder to the partition, that code uses explicit 'mount' steps. Although via ' guestfish ' from red-hat one could make it with more idiomatic one-liners (it mounts internally via libguestfs, also can explore images interactively, very nice examples are available. Warning: I have used guestfish only for non-roofs partitions, where file rights are simpler.) I agree that the wic approach is probably the more Yocto-aligned one for the final solution, as it is the tool of choice, adding these examples more as references for CLI image manipulation/debugging. Have a great day, Francesco Cervigni Neoncomputing Embedded IIoT - Chambery, France [email protected]