Skip to contentSkip to conversation

short form for unpacking recursively into WORKDIR?

DISCUSSION Robert P. J. Day 2 participants 3 messages May 2, 2020

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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