From bb84a88992e138c4074099511222063d5fd5c66d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 19 Oct 2022 15:00:06 +0200 Subject: [PATCH] Deploy default /etc/locale.conf, to avoid systemd-firstboot prompting during bootup 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 | 6 ++++++ etc/grml/fai/config/scripts/GRMLBASE/25-locales | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 etc/grml/fai/config/files/etc/locale.conf/GRMLBASE 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 index 0000000..37206c4 --- /dev/null +++ b/etc/grml/fai/config/files/etc/locale.conf/GRMLBASE @@ -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 diff --git a/etc/grml/fai/config/scripts/GRMLBASE/25-locales b/etc/grml/fai/config/scripts/GRMLBASE/25-locales index 277b684..59a4e71 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/25-locales +++ b/etc/grml/fai/config/scripts/GRMLBASE/25-locales @@ -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 -- 2.1.4