mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 15:31:05 +02:00
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:
parent
6189ee647a
commit
3ca8557817
@ -5,6 +5,3 @@ L /etc/securetty - - - - ../usr/share/shadow/securetty
|
||||
|
||||
d /etc/default - - - - -
|
||||
L /etc/default/useradd - - - - ../../usr/share/shadow/useradd
|
||||
|
||||
f /var/log/lastlog - - - - -
|
||||
f /var/log/faillog - - - - -
|
@ -0,0 +1,2 @@
|
||||
f /var/log/lastlog - - - - -
|
||||
f /var/log/faillog - - - - -
|
@ -78,7 +78,11 @@ src_install() {
|
||||
|
||||
# Remove files from /etc, they will be symlinks to /usr instead.
|
||||
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
|
||||
# Using a securetty with devfs device names added
|
Loading…
x
Reference in New Issue
Block a user