short form for unpacking recursively into WORKDIR?
was playing with shadow and PAM stuff, and noticed this in
shadow.inc:
# Additional Policy files for PAM
PAM_SRC_URI = "file://pam.d/chfn \
file://pam.d/chpasswd \
file://pam.d/chsh \
file://pam.d/login \
file://pam.d/newusers \
file://pam.d/passwd \
file://pam.d/su"which results in that pam.d/ directory (and the identified files) being copied into pam.d/ in WORKDIR. but since the above is the entire contents of that directory under files/, i wondered if one could just refer to the directory alone and it would unpack recursively, and it seems to work fine using:
PAM_SRC_URI = "file://pam.d/"
i'd never noticed that before, and am not sure if that's actually mentioned in the docs (is it?). in any event, if the above shortcut is officially supported, is there a reason to spell it out in full anyway as is done in shadow.inc? (i mean, other than to be selective and cherry-pick what you want unpacked.)
rday
https://lists.yoctoproject.org/g/yocto/topic/73258946
Quoted 30 lines · Robert P. J. Day
was playing with shadow and PAM stuff, and noticed this in
shadow.inc:# Additional Policy files for PAM
PAM_SRC_URI = "file://pam.d/chfn \ file://pam.d/chpasswd \ file://pam.d/chsh \ file://pam.d/login \ file://pam.d/newusers \ file://pam.d/passwd \ file://pam.d/su"which results in that pam.d/ directory (and the identified files) being copied into pam.d/ in WORKDIR. but since the above is the entire contents of that directory under files/, i wondered if one could just refer to the directory alone and it would unpack recursively, and it seems to work fine using:
PAM_SRC_URI= "file://pam.d/"i'd never noticed that before, and am not sure if that's actually mentioned in the docs (is it?). in any event, if the above shortcut is officially supported, is there a reason to spell it out in full anyway as is done in shadow.inc? (i mean, other than to be selective and cherry-pick what you want unpacked.)
rday
Quoted 1 line · Denys Dmytriyenko
ah, i remember that exchange, but i was focused on the patching
aspect of it, not the simpler copying aspect.
rday