From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7156545609932996608 X-Received: by 2002:a05:6870:b507:b0:132:6bb5:77c4 with SMTP id v7-20020a056870b50700b001326bb577c4mr8252386oap.91.1666267978667; Thu, 20 Oct 2022 05:12:58 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:b783:b0:136:8a4d:f0b3 with SMTP id ed3-20020a056870b78300b001368a4df0b3ls6957905oab.11.-pod-prod-gmail; Thu, 20 Oct 2022 05:12:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5azoXJHamAjhMgDzywyyZ8Hfw5n6qJAnBRwLFlPA389FlvR+TnJ/d+i1S0lyWhRVejSdNE X-Received: by 2002:a05:6870:b002:b0:131:ec02:b906 with SMTP id y2-20020a056870b00200b00131ec02b906mr8855126oae.222.1666267978093; Thu, 20 Oct 2022 05:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666267978; cv=none; d=google.com; s=arc-20160816; b=efqZO79UwdXkagK2t7eUZQHRIzkXhHN+1xlsfzA4MHFOrXLN4klXOvPnAVVsI57d3Y P4QNBnIdhpUZtkND8QBUwrR46x01DvKU9SyNHPkUvodY3mO7mjD9pEoyNg/wZCCFdqb3 5D9vFK+YDg8Vrl456f7iCG5JbKNtSJghPCr2loT4PTfsbMlOGTUFLdJwp5UN+jf1Xvb4 tP+pobh72ff14AXMx1zDTb9Ei6jXG9wDgvj49P/pQc60B4IU/KVSU0k2H0v+Xwq0I9nH Dp/e6TgZGQ9xfoPSscdg0wUtBi/FnLS9DmKHR4AlrBxG2JldPOVgc4n1C3GvKI1dAsZN nGag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=ZL4JQ4cSGQqKWM6D3ipQ7Vv1JznkTumdBvNTobhRhaQ=; b=n2x4jlIZQb8rkQ+xYaDgnVmjtAtdm9BLRKhCYT70UC1LsYP5o08jaXaVj3/O494CtI eg6x6+cwguJOs2uUM6FHFlsyqlt+WMlZOvwgsHDSJbAsrNyFwpSDJN8c4zL93k7jUjXX kbOh0wmNwECQhCJU2f9AmvDaF0LN+r7njfnfvG8HuyXN1LCA5+gXEK7zfpRBoyLfntSy SHXpNPRdzWP2OuPcX7Q0iSxWkxptIbEYWCU/aITCIEuRCPhyX4O1l7VjZS9tu5Ht7yWf UGfIiPSghNiX8z1RPMT9PBULE3gq7stwIW8+5aZDdIIGKHivom8WJVQtaBLXpsLg+ey9 0hTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id n37-20020a056870972500b0013191fe1d85si999556oaq.0.2022.10.20.05.12.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2022 05:12:57 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from hp.localnet (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 29KCCofa029271 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Oct 2022 14:12:51 +0200 From: Uladzimir Bely To: isar-users , "Schaffner, Tobias" Subject: Re: [PATCH] Set default locale in /etc/locale.conf Date: Thu, 20 Oct 2022 15:12:44 +0300 Message-ID: <6808467.jJDZkT8p0M@hp> In-Reply-To: <78c228a7-1a11-119d-8fe9-03f62d47c752@siemens.com> References: <78c228a7-1a11-119d-8fe9-03f62d47c752@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: aN7PW03+VzMN In mail from =D1=87=D0=B5=D1=82=D0=B2=D0=B5=D1=80=D0=B3, 20 =D0=BE=D0=BA=D1= =82=D1=8F=D0=B1=D1=80=D1=8F 2022 =D0=B3. 13:51:57 +03 user Schaffner, Tobia= s=20 wrote: Hello.=20 I've just tried your changes with both 'bullseye' and 'bookworm' under qemu= =20 and it they both booted properly (before, bookworm boot too, much more time= =20 and resulted in some kind of error). Just a question: How did you send this patch? Because both 'mbox'-es, one=20 generated by our patchwork ( https://patchwork.isar-build.org/project/isar/ patch/78c228a7-1a11-119d-8fe9-03f62d47c752@siemens.com/ ) and another I sav= ed=20 in the mail client, couldn't be applied. So, I had to apply this changes=20 manually, line by line. Probably, the patch was sent from some client that broke lines? > Debian bookworm introduced systemd-firstboot [1] which asks the user to > configure some basic settings like hostname, timezone or locale if not > already configured. >=20 > It asks the user interactively to select a locale on first boot as we do = not > have it set in /etc/locale.conf [2]. >=20 > Create the /etc/locale.conf with the default locale setting to allow boot= ing > bookworm images without user interaction. >=20 > [1] https://www.freedesktop.org/software/systemd/man/systemd-firstboot.ht= ml > [2] https://man7.org/linux/man-pages/man5/locale.conf.5.html >=20 > Signed-off-by: Tobias Schaffner > --- > meta/classes/image-locales-extension.bbclass | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) >=20 > diff --git a/meta/classes/image-locales-extension.bbclass > b/meta/classes/image-locales-extension.bbclass > index 25af540..964793a 100644 > --- a/meta/classes/image-locales-extension.bbclass > +++ b/meta/classes/image-locales-extension.bbclass > @@ -44,7 +44,7 @@ __EOF__ > locales locales/locales_to_be_generated multiselect > ${@get_locale_gen(d, ', ')} > locales locales/default_environment_locale select ${LOCALE_DEFAULT} > __EOF__ > - cat<<__EOF__ > ${WORKDIR}/locale.default > + cat<<__EOF__ > ${WORKDIR}/locale.conf > LANG=3D${LOCALE_DEFAULT} > __EOF__ > cat<<__EOF__ > ${WORKDIR}/locale.nopurge > @@ -63,7 +63,7 @@ __EOF__ > cat '${WORKDIR}/locale.gen' >> '${ROOTFSDIR}/etc/locale.gen' > cat '${WORKDIR}/locale.default' > > '${ROOTFSDIR}/etc/default/locale' cat '${WORKDIR}/locale.nopurge' > > '${ROOTFSDIR}/etc/locale.nopurge' - cat '${WORKDIR}/locale.debconf' > > '${ROOTFSDIR}/tmp/locale.debconf' + cat '${WORKDIR}/locale.conf'= > > '${ROOTFSDIR}/etc/locale.conf' >=20 > # Enter image and trigger locales config and localepurge: > chroot '${ROOTFSDIR}' /bin/sh <<'EOSH' > @@ -78,8 +78,7 @@ __EOF__ > fi >=20 > echo 'running locale debconf-set-selections' > - debconf-set-selections /tmp/locale.debconf > - rm -f '/tmp/locale.debconf' > + debconf-set-selections /etc/locale.conf >=20 > echo 'reconfigure locales' > dpkg-reconfigure -f noninteractive locales