Deploy default /etc/locale.conf, to avoid systemd-firstboot prompting during bootup
authorMichael Prokop <mika@grml.org>
Wed, 19 Oct 2022 13:00:06 +0000 (15:00 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 19 Oct 2022 13:15:19 +0000 (15:15 +0200)
Otherwise we're getting the `Please configure your system` prompt by
systemd's print_welcome() (see src/firstboot/firstboot.c), which
shows up with systemd v251

etc/grml/fai/config/files/etc/locale.conf/GRMLBASE [new file with mode: 0644]
etc/grml/fai/config/scripts/GRMLBASE/25-locales

diff --git a/etc/grml/fai/config/files/etc/locale.conf/GRMLBASE b/etc/grml/fai/config/files/etc/locale.conf/GRMLBASE
new file mode 100644 (file)
index 0000000..37206c4
--- /dev/null
@@ -0,0 +1,6 @@
+# This file was deployed via grml-live's
+# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/25-locales script, using
+# ${GRML_FAI_CONFIG}/config/files/etc/locale.conf/GRMLBASE
+################################################################################
+# This file lists the locales configuration as used by e.g. systemd-firstboot
+LANG=C.UTF-8
index 277b684..59a4e71 100755 (executable)
@@ -13,6 +13,9 @@ set -e
 # the full setup, GRMLBASE installs a minimal configuration
 fcopy -v /etc/locale.gen
 
+# set up /etc/locale.conf, to avoid systemd-firstboot prompting for user input
+fcopy -v /etc/locale.conf
+
 # get rid of locales unless using class LOCALES
 set +u
 if ! ifclass LOCALES ; then