Skip to content

bin/isolated-functions.sh: add new function __normalize_owner used then by {ins,dir,exec,lib}opts#1571

Open
PPN-SD wants to merge 3 commits into
gentoo:masterfrom
PPN-SD:chost_ownerinstall
Open

bin/isolated-functions.sh: add new function __normalize_owner used then by {ins,dir,exec,lib}opts#1571
PPN-SD wants to merge 3 commits into
gentoo:masterfrom
PPN-SD:chost_ownerinstall

Conversation

@PPN-SD
Copy link
Copy Markdown
Contributor

@PPN-SD PPN-SD commented Apr 13, 2026

move __resolve_owner from fowners to isolated-function so it can be used by other helpers. Use die instead of die_helpers.

add a new function __normalize_owner using __resolve_owner to replace literal -o/--owner/-g/--group with numeric-uid-gid. Use it for {ins,dir,exec,lib}opts.

Not sure things are in the right place but it’s a start.

Bug: https://bugs.gentoo.org/971120

PPN-SD added 3 commits April 13, 2026 21:31
So it can be used by other helpers.
Use die instead of die_helpers in isolated-functions

Bug: https://bugs.gentoo.org/971120
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
from a list of args using -o/--owner/-g/--group, replace literal
user/group w/ numeric-uid-gid

Bug: https://bugs.gentoo.org/971120
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
this extends the use of passwd/group files from the target system

Bug: https://bugs.gentoo.org/971120
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
@floppym
Copy link
Copy Markdown
Contributor

floppym commented Apr 14, 2026

I'll try to take a look at this.

@PPN-SD PPN-SD marked this pull request as ready for review May 21, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants