The reason seems to be this[1] update of btrfs-tools, which included this[2] commit. The important change is that previously mkfs.btrfs was using lstat syscall to get file stats, but then it switched to nftw libc function to do the same. Pseudo[3] however doesn't support this call - it "knows" that it exists (at least nftw64), but there seems to be no implementation.
Possibilities at the first sight: 1 - Downgrade btrfs-tools in your custom layer (unless you need any of the new functions) 2 - Revert the change with a patch in a bbappend 3 - Make pseudo support nftw #1 and #2 would be a fast change. #3 would be the best of course (it seems to be a nice extension, I might try to look at it over the weekend - though chances are that it won't happen or I will give up/fail. So feel free, anyone.). [1]: https://git.yoctoproject.org/poky/commit/?id=2ff9d40ccb493967151bfed6aed889de45bdd464 [2]: https://web.git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git/commit/?id=c6464d3f99ed1dabceff1168eabb207492c37624 [3]: https://git.yoctoproject.org/poky/tree/meta/recipes-devtools/pseudo On 27.02.25 19:57, Lander0606 via lists.yoctoproject.org wrote: > Hi guys, > > For my project, I changed the filesystem from ext4 to btrfs. The image > builds and flashes fine, but when booting the system some mount > problems occur because the root filesystem has UID 1000 all over it. > So, when creating the filesystem, the directories are not created with > /root:root/ as owner. Some important notes: > > > * Currently I'm on the master branch to use the newest kernel 6.12, > but when switching back to the /scarthgap/ branch, the issue with > permissions doesn't exist for a btrfs image. The filesystem mounts > fine. > * I use Fedora 41 with a btrfs filesystem as build host, but I > checked on an Ubuntu 24.04 machine with an ext4 filesystem as well > and the issue still persists. > * I tried adding a fix with /do_image[postfuncs] /to run /chown -R > root:root/ on all directories, but the issue still persists... > * To test, I just mount the generated btrfs filesystem to my Fedora > host and check the permissions with /ls -lah/ > > > Has anyone experienced similar problems with btrfs? Or does anyone > have an idea how to patch this? > > Any help is appreciated! Thanks in advance! > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64902): https://lists.yoctoproject.org/g/yocto/message/64902 Mute This Topic: https://lists.yoctoproject.org/mt/111420988/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-