From 4cebd207d1487e1944fd81bbaf63678dade3ed4e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 15 Sep 2022 19:35:36 +0100 Subject: tmpfiles: add lines for provisioning ssh keys for root by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With this, I can now easily do: systemd-nspawn --load-credential=ssh.authorized_keys.root:/home/lennart/.ssh/authorized_keys --image=… --boot To boot into an image with my SSH key copied in. Yay! --- units/systemd-tmpfiles-setup.service | 1 + 1 file changed, 1 insertion(+) (limited to 'units') diff --git a/units/systemd-tmpfiles-setup.service b/units/systemd-tmpfiles-setup.service index 7e11eb9414..a420465534 100644 --- a/units/systemd-tmpfiles-setup.service +++ b/units/systemd-tmpfiles-setup.service @@ -27,3 +27,4 @@ LoadCredential=tmpfiles.extra LoadCredential=login.motd LoadCredential=login.issue LoadCredential=network.hosts +LoadCredential=ssh.authorized_keys.root -- cgit v1.2.1