Re: [yocto] Btrfs root filesystem permission issue

2025-03-01 Thread Lander0606 via lists.yoctoproject.org
Nice! I did some research, but the only "improvement" I see would be to change the stat-struct in the callback to force UID/GID to 0. But for that, I think we need another callback function to wrap around the given callback to change the UID/GID. Unless I'm not seeing something or misunderstand

Re: [yocto] Btrfs root filesystem permission issue

2025-03-01 Thread Gyorgy Sarvari via lists.yoctoproject.org
On 01.03.25 16:56, Lander0606 via Lists.Yoctoproject.Org wrote: > Thanks for your response! >   > I did have a look at the pseudo and btrfs-progs repository and noticed > that the pseudo repository contains the following code in > ./ports/unix/guts/ for the nftw() system call: >   > rc = real_nftw(

Re: [yocto] Btrfs root filesystem permission issue

2025-03-01 Thread Lander0606 via lists.yoctoproject.org
Thanks for your response! I did have a look at the pseudo and btrfs-progs repository and noticed that the pseudo repository contains the following code in ./ports/unix/guts/ for the nftw() system call: rc = real_nftw(path, fn, nopenfd, flag); So, it seems that the wrapper for the nftw() system

Re: [yocto] Btrfs root filesystem permission issue

2025-03-01 Thread Gyorgy Sarvari via lists.yoctoproject.org
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

[yocto] Btrfs root filesystem permission issue

2025-02-27 Thread Lander0606 via lists.yoctoproject.org
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 a