initial version (alpha)
This commit is contained in:
commit
b5de726919
58 changed files with 1237 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Apply bootc updates
|
||||
Documentation=man:bootc(8)
|
||||
ConditionPathExists=/run/ostree-booted
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1h
|
||||
OnUnitInactiveSec=4h
|
||||
RandomizedDelaySec=10min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
24
system_files/usr/lib/systemd/system/enable-mkhomedir.service
Normal file
24
system_files/usr/lib/systemd/system/enable-mkhomedir.service
Normal file
|
@ -0,0 +1,24 @@
|
|||
[Unit]
|
||||
Description=Enable pam_mkhomedir so any user gets a home seeded from /etc/skel
|
||||
ConditionFirstBoot=yes
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# Prefer authselect (Fedora default). Fallback if it's missing.
|
||||
ExecStart=/usr/bin/bash -ceu '
|
||||
if command -v authselect >/dev/null 2>&1; then
|
||||
authselect current >/dev/null 2>&1 || authselect select sssd --force
|
||||
authselect enable-feature with-mkhomedir
|
||||
authselect apply-changes -b
|
||||
else
|
||||
# Fallback: ensure mkhomedir in postlogin stack
|
||||
mkdir -p /etc/pam.d
|
||||
if ! grep -q "pam_mkhomedir.so" /etc/pam.d/postlogin 2>/dev/null; then
|
||||
printf "session required pam_mkhomedir.so skel=/etc/skel umask=0077\n" >> /etc/pam.d/postlogin
|
||||
fi
|
||||
fi
|
||||
'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue