15 lines
344 B
SYSTEMD
15 lines
344 B
SYSTEMD
# The root password. /etc is read-only, so agent-setup writes the shadow file to /var and this
|
|
# mounts it over /etc/shadow.
|
|
[Unit]
|
|
Description=Root password from /var
|
|
ConditionPathExists=/var/lib/agent/etc/shadow
|
|
RequiresMountsFor=/var
|
|
|
|
[Mount]
|
|
What=/var/lib/agent/etc/shadow
|
|
Where=/etc/shadow
|
|
Options=bind
|
|
|
|
[Install]
|
|
WantedBy=local-fs.target
|