summaryrefslogtreecommitdiffstats
path: root/units/systemd-firstboot.service
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-03-11 11:47:57 +0100
committerLennart Poettering <lennart@poettering.net>2021-03-26 12:21:18 +0100
commit416f7b3a11e00d1a43da950fb4a00bc6c2707013 (patch)
tree0dd0d39b17eeb1857f6ad4a0c1bf94fabad0fa90 /units/systemd-firstboot.service
parentfirstboot: slightly reorder variable declaration (diff)
downloadsystemd-416f7b3a11e00d1a43da950fb4a00bc6c2707013.tar.xz
systemd-416f7b3a11e00d1a43da950fb4a00bc6c2707013.zip
firstboot: allow provisioning of firstboot params via creds too
Diffstat (limited to 'units/systemd-firstboot.service')
-rw-r--r--units/systemd-firstboot.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/units/systemd-firstboot.service b/units/systemd-firstboot.service
index d7f445ef35..2e57b064c1 100644
--- a/units/systemd-firstboot.service
+++ b/units/systemd-firstboot.service
@@ -25,3 +25,14 @@ ExecStart=systemd-firstboot --prompt-locale --prompt-timezone --prompt-root-pass
StandardOutput=tty
StandardInput=tty
StandardError=tty
+
+# Optionally, pick up basic fields from credentials passed to the service
+# manager. This is useful for importing this data from nspawn's
+# --set-credential= switch.
+LoadCredential=passwd.hashed-password.root
+LoadCredential=passwd.plaintext-password.root
+LoadCredential=passwd.shell.root
+LoadCredential=firstboot.locale
+LoadCredential=firstboot.locale-messages
+LoadCredential=firstboot.keymap
+LoadCredential=firstboot.timezone