teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0027-tmpfiles.d-do-not-fail-if-provision.conf-fails.patch

ac3a84
From 6d8f91ab2f7db862d95d0565bad3aaf4279c00bc Mon Sep 17 00:00:00 2001
ac3a84
From: Luca Boccassi <bluca@debian.org>
ac3a84
Date: Thu, 3 Nov 2022 20:10:57 +0000
ac3a84
Subject: [PATCH] tmpfiles.d: do not fail if provision.conf fails
ac3a84
ac3a84
On a read-only filesystem creating /root/.ssh might fail, but that's ok.
ac3a84
Do not fail the run, as this is only needed to add the credential, which
ac3a84
is a separate step.
ac3a84
ac3a84
(cherry picked from commit e0fc9be37e4d15e2c322eb8281692c2639dac023)
ac3a84
ac3a84
Related #2138081
ac3a84
---
ac3a84
 tmpfiles.d/provision.conf | 4 ++--
ac3a84
 1 file changed, 2 insertions(+), 2 deletions(-)
ac3a84
ac3a84
diff --git a/tmpfiles.d/provision.conf b/tmpfiles.d/provision.conf
ac3a84
index 3c56f42d58..093104aaaf 100644
ac3a84
--- a/tmpfiles.d/provision.conf
ac3a84
+++ b/tmpfiles.d/provision.conf
ac3a84
@@ -17,6 +17,6 @@ f^ /etc/issue.d/50-provision.conf - - - - login.issue
ac3a84
 f^ /etc/hosts - - - - network.hosts
ac3a84
 
ac3a84
 # Provision SSH key for root
ac3a84
-d /root :0700 root :root -
ac3a84
-d /root/.ssh :0700 root :root -
ac3a84
+d- /root :0700 root :root -
ac3a84
+d- /root/.ssh :0700 root :root -
ac3a84
 f^ /root/.ssh/authorized_keys :0600 root :root - ssh.authorized_keys.root