All of lore.kernel.org
 help / color / mirror / Atom feed
* Btrfs root filesystem permission issue
@ 2025-02-27 18:57 Lander0606
  2025-03-01 14:35 ` [yocto] " Gyorgy Sarvari
  0 siblings, 1 reply; 12+ messages in thread
From: Lander0606 @ 2025-02-27 18:57 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

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!

[-- Attachment #2: Type: text/html, Size: 1287 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-04-25  6:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 18:57 Btrfs root filesystem permission issue Lander0606
2025-03-01 14:35 ` [yocto] " Gyorgy Sarvari
2025-03-01 15:56   ` Lander0606
2025-03-01 17:05     ` Gyorgy Sarvari
2025-03-01 18:32       ` Lander0606
2025-03-03 12:08         ` Gyorgy Sarvari
2025-03-03 21:52           ` Lander0606
2025-03-03 21:57             ` Gyorgy Sarvari
2025-03-03 22:05               ` Lander0606
2025-03-04  0:14                 ` Lander0606
2025-04-24 20:18   ` Ferry Toth
2025-04-25  6:21     ` Gyorgy Sarvari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.