From: Gyorgy Sarvari <skandigraun@gmail.com>
To: landervanloock@gmail.com, yocto@lists.yoctoproject.org
Subject: Re: [yocto] Btrfs root filesystem permission issue
Date: Mon, 3 Mar 2025 13:08:21 +0100 [thread overview]
Message-ID: <ee3d8230-dfac-4933-810c-586fff8ec0ba@gmail.com> (raw)
In-Reply-To: <18989.1740853925670787710@lists.yoctoproject.org>
On 01.03.25 19:32, Lander0606 via Lists.Yoctoproject.Org wrote:
> 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 where the problem really is?
>
I have created a draft patch[1] - simplified (and not a full
implementation), but it seems to do the job at least for btrfs-tools. It
works for me(TM), though it doesn't always mean an awful lot - I only
checked the generated FS with core-image-minimal, which looked what I
expected. Would you mind giving it a try, if you have time (or anyone else)?
If it works for you too, then I will write a couple of tests, and
attempt submitting it for the real thing.
Of course, everyone is free to try/comment... I intend to submit
something very similar to the current patch - the sooner comments (or
rejection) come, the better it is.
(If no feedback comes that would discourage me, I will try to submit a
patch around Wednesday-ish in any case, for further scrutiny...)
Thanks
[1]:
https://gist.github.com/OldManYellsAtCloud/f6b6ecf37ab65db8d61ac7bed583a7f4
next prev parent reply other threads:[~2025-03-03 12:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ee3d8230-dfac-4933-810c-586fff8ec0ba@gmail.com \
--to=skandigraun@gmail.com \
--cc=landervanloock@gmail.com \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.