]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles.d: do not fail if provision.conf fails
authorLuca Boccassi <bluca@debian.org>
Thu, 3 Nov 2022 20:10:57 +0000 (20:10 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 4 Nov 2022 14:42:16 +0000 (15:42 +0100)
On a read-only filesystem creating /root/.ssh might fail, but that's ok.
Do not fail the run, as this is only needed to add the credential, which
is a separate step.

tmpfiles.d/provision.conf

index 3c56f42d585880a71fd59b0f016563a79cb717c0..093104aaaff0fb20c25c98214e04c9ec660b758e 100644 (file)
@@ -17,6 +17,6 @@ f^ /etc/issue.d/50-provision.conf - - - - login.issue
 f^ /etc/hosts - - - - network.hosts
 
 # Provision SSH key for root
-d /root :0700 root :root -
-d /root/.ssh :0700 root :root -
+d- /root :0700 root :root -
+d- /root/.ssh :0700 root :root -
 f^ /root/.ssh/authorized_keys :0600 root :root - ssh.authorized_keys.root