diff --git a/man/kernel-command-line.xml b/man/kernel-command-line.xml
index 1fa31a14b7..c86e45265f 100644
--- a/man/kernel-command-line.xml
+++ b/man/kernel-command-line.xml
@@ -353,6 +353,15 @@
systemd-hibernate-resume-generator8.
+
+
+ systemd.firstboot=
+
+ Takes a boolean argument, defaults to on. If off,
+ systemd-firstboot.service8
+ will not query the user for basic system settings, even if the system boots up for the first time and the
+ relevant settings are not initialized yet.
+
@@ -376,7 +385,8 @@
systemd-modules-load.service8,
systemd-backlight@.service8,
systemd-rfkill.service8,
- systemd-hibernate-resume-generator8
+ systemd-hibernate-resume-generator8,
+ systemd-firstboot.service8
diff --git a/man/systemd-firstboot.xml b/man/systemd-firstboot.xml
index b269e48113..4e3b1a3a81 100644
--- a/man/systemd-firstboot.xml
+++ b/man/systemd-firstboot.xml
@@ -240,6 +240,20 @@
otherwise.
+
+ Kernel Command Line
+
+
+
+ systemd.firstboot=
+
+ Takes a boolean argument, defaults to on. If off systemd-firstboot.service
+ won't interactively query the user for basic settings at first boot, even if if the settings are not
+ initialized yet.
+
+
+
+
See Also
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index c9e8e54ee3..7c615abbc5 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -33,6 +33,7 @@
#include "mkdir.h"
#include "parse-util.h"
#include "path-util.h"
+#include "proc-cmdline.h"
#include "random-util.h"
#include "string-util.h"
#include "strv.h"
@@ -825,6 +826,7 @@ static int parse_argv(int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
+ _cleanup_free_ char *enabled = NULL;
int r;
r = parse_argv(argc, argv);
@@ -837,6 +839,17 @@ int main(int argc, char *argv[]) {
umask(0022);
+ r = get_proc_cmdline_key("systemd.firstboot=", &enabled);
+ if (r < 0)
+ return r;
+ if (r > 0) {
+ r = parse_boolean(enabled);
+ if (r == 0)
+ goto finish;
+ if (r < 0)
+ log_warning_errno(r, "Failed to parse systemd.firstboot= kernel command line argument, ignoring: %s", enabled);
+ }
+
r = process_locale();
if (r < 0)
goto finish;