sys-apps/shadow: split shadow.conf

This will allow bootengine to only apply the shadow config that applies to /etc.
This commit is contained in:
Alex Crawford 2016-01-11 19:20:39 -08:00
parent 6189ee647a
commit 3ca8557817
3 changed files with 7 additions and 4 deletions

View File

@ -5,6 +5,3 @@ L /etc/securetty - - - - ../usr/share/shadow/securetty
d /etc/default - - - - - d /etc/default - - - - -
L /etc/default/useradd - - - - ../../usr/share/shadow/useradd L /etc/default/useradd - - - - ../../usr/share/shadow/useradd
f /var/log/lastlog - - - - -
f /var/log/faillog - - - - -

View File

@ -0,0 +1,2 @@
f /var/log/lastlog - - - - -
f /var/log/faillog - - - - -

View File

@ -78,7 +78,11 @@ src_install() {
# Remove files from /etc, they will be symlinks to /usr instead. # Remove files from /etc, they will be symlinks to /usr instead.
rm -f "${D}"/etc/{limits,login.access,login.defs,securetty,default/useradd} rm -f "${D}"/etc/{limits,login.access,login.defs,securetty,default/useradd}
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/shadow.conf
# CoreOS: break shadow.conf into two files so that we only have to apply
# etc-shadow.conf in the initrd.
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/etc-shadow.conf
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/var-shadow.conf
insinto /usr/share/shadow insinto /usr/share/shadow
# Using a securetty with devfs device names added # Using a securetty with devfs device names added