* bookworm/sid: new interactive system locale setting on first boot
@ 2022-10-07 13:25 Jan Kiszka
2022-10-07 13:55 ` Henning Schild
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Jan Kiszka @ 2022-10-07 13:25 UTC (permalink / raw)
To: isar-users
Hi all,
just installed a simple image (isar-cip-core) from a fresh sid of today
and got this on first boot:
Welcome to your new installation of Debian GNU/Linux bookworm/sid!
Please configure your system!
-- Press any key to proceed --[ OK ] Finished Flush Journal to Persistent Storage.
[ OK ] Finished Load/Save Random Seed.
Starting Regenerate sshd host keys...
[ OK ] Finished Coldplug All udev Devices.
Starting Helper to synchronize boot up for ifupdown...
[ OK ] Finished Helper to synchronize boot up for ifupdown.
[ OK ] Finished Regenerate sshd host keys.
l
‣ Please enter system locale name or number (empty to skip, "list" to list options): list
1) C.UTF-8 2) en_US.UTF-8
‣ Please enter system locale name or number (empty to skip, "list" to list options):
Anyone seens this already as well? What could be missing to preconfigure
things as before?
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-07 13:25 bookworm/sid: new interactive system locale setting on first boot Jan Kiszka
@ 2022-10-07 13:55 ` Henning Schild
2022-10-07 14:10 ` Jan Kiszka
2022-10-13 12:50 ` Henning Schild
2022-10-19 11:28 ` Henning Schild
2 siblings, 1 reply; 12+ messages in thread
From: Henning Schild @ 2022-10-07 13:55 UTC (permalink / raw)
To: Jan Kiszka; +Cc: isar-users
Am Fri, 7 Oct 2022 15:25:13 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> Hi all,
>
> just installed a simple image (isar-cip-core) from a fresh sid of
> today and got this on first boot:
>
>
> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
>
> Please configure your system!
>
> -- Press any key to proceed --[ OK ] Finished Flush Journal to
> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
> Starting Regenerate sshd host keys...
> [ OK ] Finished Coldplug All udev Devices.
> Starting Helper to synchronize boot up for ifupdown...
> [ OK ] Finished Helper to synchronize boot up for ifupdown.
> [ OK ] Finished Regenerate sshd host keys.
> l
> ‣ Please enter system locale name or number (empty to skip, "list" to
> list options): list 1) C.UTF-8 2) en_US.UTF-8
>
>
> ‣ Please enter system locale name or number (empty to skip, "list" to
> list options):
>
>
> Anyone seens this already as well? What could be missing to
> preconfigure things as before?
Not seen before sorry. I did build and boot
mc:qemuamd64-bookworm:isar-image-base from isar next today, that was ok.
Maybe ro rootfs issues?
Henning
> Jan
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-07 13:55 ` Henning Schild
@ 2022-10-07 14:10 ` Jan Kiszka
2022-10-12 7:39 ` Florian Bezdeka
0 siblings, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2022-10-07 14:10 UTC (permalink / raw)
To: Henning Schild; +Cc: isar-users
On 07.10.22 15:55, Henning Schild wrote:
> Am Fri, 7 Oct 2022 15:25:13 +0200
> schrieb Jan Kiszka <jan.kiszka@siemens.com>:
>
>> Hi all,
>>
>> just installed a simple image (isar-cip-core) from a fresh sid of
>> today and got this on first boot:
>>
>>
>> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
>>
>> Please configure your system!
>>
>> -- Press any key to proceed --[ OK ] Finished Flush Journal to
>> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
>> Starting Regenerate sshd host keys...
>> [ OK ] Finished Coldplug All udev Devices.
>> Starting Helper to synchronize boot up for ifupdown...
>> [ OK ] Finished Helper to synchronize boot up for ifupdown.
>> [ OK ] Finished Regenerate sshd host keys.
>> l
>> ‣ Please enter system locale name or number (empty to skip, "list" to
>> list options): list 1) C.UTF-8 2) en_US.UTF-8
>>
>>
>> ‣ Please enter system locale name or number (empty to skip, "list" to
>> list options):
>>
>>
>> Anyone seens this already as well? What could be missing to
>> preconfigure things as before?
>
> Not seen before sorry. I did build and boot
> mc:qemuamd64-bookworm:isar-image-base from isar next today, that was ok.
>
> Maybe ro rootfs issues?
>
Kernel command line: console=hvc1 console=ttyS0 root=/dev/vda rw
Would have been too easy. It's a qemu-riscv64 target. Let me check if
Isar itself is affected.
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-07 14:10 ` Jan Kiszka
@ 2022-10-12 7:39 ` Florian Bezdeka
2022-10-12 8:03 ` Henning Schild
0 siblings, 1 reply; 12+ messages in thread
From: Florian Bezdeka @ 2022-10-12 7:39 UTC (permalink / raw)
To: Jan Kiszka, Henning Schild; +Cc: isar-users
On 07.10.22 16:10, Jan Kiszka wrote:
> On 07.10.22 15:55, Henning Schild wrote:
>> Am Fri, 7 Oct 2022 15:25:13 +0200
>> schrieb Jan Kiszka <jan.kiszka@siemens.com>:
>>
>>> Hi all,
>>>
>>> just installed a simple image (isar-cip-core) from a fresh sid of
>>> today and got this on first boot:
>>>
>>>
>>> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
>>>
>>> Please configure your system!
>>>
>>> -- Press any key to proceed --[ OK ] Finished Flush Journal to
>>> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
>>> Starting Regenerate sshd host keys...
>>> [ OK ] Finished Coldplug All udev Devices.
>>> Starting Helper to synchronize boot up for ifupdown...
>>> [ OK ] Finished Helper to synchronize boot up for ifupdown.
>>> [ OK ] Finished Regenerate sshd host keys.
>>> l
>>> ‣ Please enter system locale name or number (empty to skip, "list" to
>>> list options): list 1) C.UTF-8 2) en_US.UTF-8
>>>
>>>
>>> ‣ Please enter system locale name or number (empty to skip, "list" to
>>> list options):
>>>
>>>
>>> Anyone seens this already as well? What could be missing to
>>> preconfigure things as before?
>>
>> Not seen before sorry. I did build and boot
>> mc:qemuamd64-bookworm:isar-image-base from isar next today, that was ok.
>>
>> Maybe ro rootfs issues?
>>
>
> Kernel command line: console=hvc1 console=ttyS0 root=/dev/vda rw
>
> Would have been too easy. It's a qemu-riscv64 target. Let me check if
> Isar itself is affected.
I can see the same thing for an arm64 image. In my case there is no
error about locales, I'm just stuck at first boot. systemd is
waiting for a key press which never happens.
It turned out that systemd introduced a new service called
systemd-firstboot which can be used to setup some basic system
information like hostname, timezone, root password, ... during
first boot.
Upstream commit:
https://github.com/systemd/systemd/commit/418b9be50018303cde79b423d4701b7fd86ddbdc
This is part of systemd 216 onwoards and Debian enabled it with
the last release (251.5-1) in bookworm at 2022-10-02.
According to commit above the new service is started when /etc is
found unpopulated. I guess this is why the service is somehow
linked to /etc/machine-id.
Maybe Isar should mask that service if present?
>
> Jan
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-12 7:39 ` Florian Bezdeka
@ 2022-10-12 8:03 ` Henning Schild
0 siblings, 0 replies; 12+ messages in thread
From: Henning Schild @ 2022-10-12 8:03 UTC (permalink / raw)
To: Florian Bezdeka; +Cc: Jan Kiszka, isar-users
Am Wed, 12 Oct 2022 09:39:05 +0200
schrieb Florian Bezdeka <florian.bezdeka@siemens.com>:
> On 07.10.22 16:10, Jan Kiszka wrote:
> > On 07.10.22 15:55, Henning Schild wrote:
> >> Am Fri, 7 Oct 2022 15:25:13 +0200
> >> schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> >>
> >>> Hi all,
> >>>
> >>> just installed a simple image (isar-cip-core) from a fresh sid of
> >>> today and got this on first boot:
> >>>
> >>>
> >>> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
> >>>
> >>> Please configure your system!
> >>>
> >>> -- Press any key to proceed --[ OK ] Finished Flush Journal to
> >>> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
> >>> Starting Regenerate sshd host keys...
> >>> [ OK ] Finished Coldplug All udev Devices.
> >>> Starting Helper to synchronize boot up for ifupdown...
> >>> [ OK ] Finished Helper to synchronize boot up for ifupdown.
> >>> [ OK ] Finished Regenerate sshd host keys.
> >>> l
> >>> ‣ Please enter system locale name or number (empty to skip,
> >>> "list" to list options): list 1) C.UTF-8 2)
> >>> en_US.UTF-8
> >>>
> >>> ‣ Please enter system locale name or number (empty to skip,
> >>> "list" to list options):
> >>>
> >>>
> >>> Anyone seens this already as well? What could be missing to
> >>> preconfigure things as before?
> >>
> >> Not seen before sorry. I did build and boot
> >> mc:qemuamd64-bookworm:isar-image-base from isar next today, that
> >> was ok.
> >>
> >> Maybe ro rootfs issues?
> >>
> >
> > Kernel command line: console=hvc1 console=ttyS0 root=/dev/vda rw
> >
> > Would have been too easy. It's a qemu-riscv64 target. Let me check
> > if Isar itself is affected.
>
> I can see the same thing for an arm64 image. In my case there is no
> error about locales, I'm just stuck at first boot. systemd is
> waiting for a key press which never happens.
>
> It turned out that systemd introduced a new service called
> systemd-firstboot which can be used to setup some basic system
> information like hostname, timezone, root password, ... during
> first boot.
>
> Upstream commit:
> https://github.com/systemd/systemd/commit/418b9be50018303cde79b423d4701b7fd86ddbdc
>
> This is part of systemd 216 onwoards and Debian enabled it with
> the last release (251.5-1) in bookworm at 2022-10-02.
>
> According to commit above the new service is started when /etc is
> found unpopulated. I guess this is why the service is somehow
> linked to /etc/machine-id.
>
> Maybe Isar should mask that service if present?
systemd.firstboot=off on the kernel cmdline could be a quick fix for a
layer. A better fix would likely be some snippet to set ExecStart or
provide answers to the questions via Credentials.
https://www.freedesktop.org/software/systemd/man/systemd-firstboot.html#Credentials
systemd.firstboot just controls that very service and ConditionFirstBoot
will still work. And that can be controlled with the cmdline as well but
would be called systemd.condition-first-boot=
https://manpages.debian.org/testing/systemd/kernel-command-line.7.en.html
Henning
> >
> > Jan
> >
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-07 13:25 bookworm/sid: new interactive system locale setting on first boot Jan Kiszka
2022-10-07 13:55 ` Henning Schild
@ 2022-10-13 12:50 ` Henning Schild
2022-10-20 8:51 ` Schaffner, Tobias
2022-10-19 11:28 ` Henning Schild
2 siblings, 1 reply; 12+ messages in thread
From: Henning Schild @ 2022-10-13 12:50 UTC (permalink / raw)
To: Jan Kiszka; +Cc: isar-users
Hi,
in a totally different context i tried a nightly build of grml for
something. And that also started asking weird questions about locales.
There is no issue in their github yet, and also not patch. But it might
be worth looking at how others deal with that. Maybe especially OE.
https://daily.grml.org/grml64-full_testing/2022-10-13_05-29-27/
Henning
Am Fri, 7 Oct 2022 15:25:13 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> Hi all,
>
> just installed a simple image (isar-cip-core) from a fresh sid of
> today and got this on first boot:
>
>
> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
>
> Please configure your system!
>
> -- Press any key to proceed --[ OK ] Finished Flush Journal to
> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
> Starting Regenerate sshd host keys...
> [ OK ] Finished Coldplug All udev Devices.
> Starting Helper to synchronize boot up for ifupdown...
> [ OK ] Finished Helper to synchronize boot up for ifupdown.
> [ OK ] Finished Regenerate sshd host keys.
> l
> ‣ Please enter system locale name or number (empty to skip, "list" to
> list options): list 1) C.UTF-8 2) en_US.UTF-8
>
>
> ‣ Please enter system locale name or number (empty to skip, "list" to
> list options):
>
>
> Anyone seens this already as well? What could be missing to
> preconfigure things as before?
>
> Jan
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-07 13:25 bookworm/sid: new interactive system locale setting on first boot Jan Kiszka
2022-10-07 13:55 ` Henning Schild
2022-10-13 12:50 ` Henning Schild
@ 2022-10-19 11:28 ` Henning Schild
2 siblings, 0 replies; 12+ messages in thread
From: Henning Schild @ 2022-10-19 11:28 UTC (permalink / raw)
To: isar-users; +Cc: Jan Kiszka
Hi all,
i was wondering how this could even happen behind our backs. Turns out
CI does build bookworm but does not boot it, maybe that should be
changed and we should actually boot it.
Henning
Am Fri, 7 Oct 2022 15:25:13 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> Hi all,
>
> just installed a simple image (isar-cip-core) from a fresh sid of
> today and got this on first boot:
>
>
> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
>
> Please configure your system!
>
> -- Press any key to proceed --[ OK ] Finished Flush Journal to
> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
> Starting Regenerate sshd host keys...
> [ OK ] Finished Coldplug All udev Devices.
> Starting Helper to synchronize boot up for ifupdown...
> [ OK ] Finished Helper to synchronize boot up for ifupdown.
> [ OK ] Finished Regenerate sshd host keys.
> l
> ‣ Please enter system locale name or number (empty to skip, "list" to
> list options): list 1) C.UTF-8 2) en_US.UTF-8
>
>
> ‣ Please enter system locale name or number (empty to skip, "list" to
> list options):
>
>
> Anyone seens this already as well? What could be missing to
> preconfigure things as before?
>
> Jan
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-13 12:50 ` Henning Schild
@ 2022-10-20 8:51 ` Schaffner, Tobias
2022-10-20 9:18 ` Moessbauer, Felix
2022-10-20 10:54 ` Henning Schild
0 siblings, 2 replies; 12+ messages in thread
From: Schaffner, Tobias @ 2022-10-20 8:51 UTC (permalink / raw)
To: Schild, Henning, jan.kiszka; +Cc: isar-users
On 13.10.22 14:50, Henning Schild wrote:
> Hi,
>
> in a totally different context i tried a nightly build of grml for
> something. And that also started asking weird questions about locales.
>
> There is no issue in their github yet, and also not patch. But it might
> be worth looking at how others deal with that. Maybe especially OE.
>
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdaily.grml.org%2Fgrml64-full_testing%2F2022-10-13_05-29-27%2F&data=05%7C01%7Ctobias.schaffner%40siemens.com%7C892055cedb0f4d51003208daad198a4e%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638012622458460393%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kT6UFfopXdw2Zx9ZsdUzA4SJ8l2zb8zw2qTG4JoxVow%3D&reserved=0
>
> Henning
I ran into the same issue today.
Looks like systemd-firstboot asks for a selection if /etc/locale.conf
[1] is not present.
We can fix this by creating the file with content LANG=${LOCALE_DEFAULT}
in meta/classes/image-locales-extension.bbclass
Do we want to go down that route or do we want to get rid of
systemd-firstboot?
Tobias
[1] https://man7.org/linux/man-pages/man5/locale.conf.5.html
> Am Fri, 7 Oct 2022 15:25:13 +0200
> schrieb Jan Kiszka <jan.kiszka@siemens.com>:
>
>> Hi all,
>>
>> just installed a simple image (isar-cip-core) from a fresh sid of
>> today and got this on first boot:
>>
>>
>> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
>>
>> Please configure your system!
>>
>> -- Press any key to proceed --[ OK ] Finished Flush Journal to
>> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
>> Starting Regenerate sshd host keys...
>> [ OK ] Finished Coldplug All udev Devices.
>> Starting Helper to synchronize boot up for ifupdown...
>> [ OK ] Finished Helper to synchronize boot up for ifupdown.
>> [ OK ] Finished Regenerate sshd host keys.
>> l
>> ‣ Please enter system locale name or number (empty to skip, "list" to
>> list options): list 1) C.UTF-8 2) en_US.UTF-8
>>
>>
>> ‣ Please enter system locale name or number (empty to skip, "list" to
>> list options):
>>
>>
>> Anyone seens this already as well? What could be missing to
>> preconfigure things as before?
>>
>> Jan
>>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: bookworm/sid: new interactive system locale setting on first boot
2022-10-20 8:51 ` Schaffner, Tobias
@ 2022-10-20 9:18 ` Moessbauer, Felix
2022-10-20 10:54 ` Henning Schild
1 sibling, 0 replies; 12+ messages in thread
From: Moessbauer, Felix @ 2022-10-20 9:18 UTC (permalink / raw)
To: Schaffner, Tobias
Cc: isar-users, Schild, Henning, Kiszka, Jan, Bezdeka, Florian
> -----Original Message-----
> From: isar-users@googlegroups.com <isar-users@googlegroups.com> On
> Behalf Of Schaffner, Tobias
> Sent: Thursday, October 20, 2022 4:52 PM
> To: Schild, Henning (T CED SES-DE) <henning.schild@siemens.com>; Kiszka, Jan
> (T CED) <jan.kiszka@siemens.com>
> Cc: isar-users <isar-users@googlegroups.com>
> Subject: Re: bookworm/sid: new interactive system locale setting on first boot
>
> On 13.10.22 14:50, Henning Schild wrote:
> > Hi,
> >
> > in a totally different context i tried a nightly build of grml for
> > something. And that also started asking weird questions about locales.
> >
> > There is no issue in their github yet, and also not patch. But it
> > might be worth looking at how others deal with that. Maybe especially OE.
> >
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdail
> > y.grml.org%2Fgrml64-full_testing%2F2022-10-13_05-29-
> 27%2F&data=05%
> >
> 7C01%7Cfelix.moessbauer%40siemens.com%7Cdb35896c039044f6a99e08dab2
> 784c
> >
> 3f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638018526995505
> 373%7CU
> >
> nknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
> 1ha
> >
> WwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Zqsq7sV%2FnAGssWF
> M7RVr8EBA
> > 5BM%2BqlqD2jzyUNcBuLs%3D&reserved=0
> >
> > Henning
>
> I ran into the same issue today.
>
> Looks like systemd-firstboot asks for a selection if /etc/locale.conf [1] is not
> present.
>
> We can fix this by creating the file with content LANG=${LOCALE_DEFAULT} in
> meta/classes/image-locales-extension.bbclass
If that works, it would be an easy fix.
I personally just disabled the service using the kernel cmdline, but that option might easily be misunderstood as to do not support the first-boot target.
As pointed out earlier by Florian, the switch "systemd.firstboot=off" only disables this locale setting service.
In the end, we need a solution as the boot simply hangs at the prompt - not very useful for an embedded system.
Felix
>
> Do we want to go down that route or do we want to get rid of systemd-
> firstboot?
>
> Tobias
>
> [1]
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fman7.or
> g%2Flinux%2Fman-
> pages%2Fman5%2Flocale.conf.5.html&data=05%7C01%7Cfelix.moessbaue
> r%40siemens.com%7Cdb35896c039044f6a99e08dab2784c3f%7C38ae3bcd9579
> 4fd4addab42e1495d55a%7C1%7C0%7C638018526995505373%7CUnknown%7C
> TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
> VCI6Mn0%3D%7C3000%7C%7C%7C&sdata=csIh%2B7C3zUPY%2FirINur5O
> Vb3y8rPndI2UAGo4qCjxKM%3D&reserved=0
>
> > Am Fri, 7 Oct 2022 15:25:13 +0200
> > schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> >
> >> Hi all,
> >>
> >> just installed a simple image (isar-cip-core) from a fresh sid of
> >> today and got this on first boot:
> >>
> >>
> >> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
> >>
> >> Please configure your system!
> >>
> >> -- Press any key to proceed --[ OK ] Finished Flush Journal to
> >> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
> >> Starting Regenerate sshd host keys...
> >> [ OK ] Finished Coldplug All udev Devices.
> >> Starting Helper to synchronize boot up for ifupdown...
> >> [ OK ] Finished Helper to synchronize boot up for ifupdown.
> >> [ OK ] Finished Regenerate sshd host keys.
> >> l
> >> ‣ Please enter system locale name or number (empty to skip, "list" to
> >> list options): list 1) C.UTF-8 2) en_US.UTF-8
> >>
> >>
> >> ‣ Please enter system locale name or number (empty to skip, "list" to
> >> list options):
> >>
> >>
> >> Anyone seens this already as well? What could be missing to
> >> preconfigure things as before?
> >>
> >> Jan
> >>
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to isar-users+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.g
> oogle.com%2Fd%2Fmsgid%2Fisar-users%2Ff41f0f8c-ca4f-9096-3992-
> a54a0847cfd0%2540siemens.com&data=05%7C01%7Cfelix.moessbauer%4
> 0siemens.com%7Cdb35896c039044f6a99e08dab2784c3f%7C38ae3bcd95794fd
> 4addab42e1495d55a%7C1%7C0%7C638018526995505373%7CUnknown%7CTW
> FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0%3D%7C3000%7C%7C%7C&sdata=6nCGI6TREBbkxhlbH%2B2hTEs0A
> n%2BQiYc8eeZjvdQqFUE%3D&reserved=0.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-20 8:51 ` Schaffner, Tobias
2022-10-20 9:18 ` Moessbauer, Felix
@ 2022-10-20 10:54 ` Henning Schild
2022-10-20 11:11 ` Schaffner, Tobias
1 sibling, 1 reply; 12+ messages in thread
From: Henning Schild @ 2022-10-20 10:54 UTC (permalink / raw)
To: Schaffner, Tobias (T CED SES-DE); +Cc: Kiszka, Jan (T CED), isar-users
Am Thu, 20 Oct 2022 10:51:34 +0200
schrieb "Schaffner, Tobias (T CED SES-DE)"
<tobias.schaffner@siemens.com>:
> On 13.10.22 14:50, Henning Schild wrote:
> > Hi,
> >
> > in a totally different context i tried a nightly build of grml for
> > something. And that also started asking weird questions about
> > locales.
> >
> > There is no issue in their github yet, and also not patch. But it
> > might be worth looking at how others deal with that. Maybe
> > especially OE.
> >
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdaily.grml.org%2Fgrml64-full_testing%2F2022-10-13_05-29-27%2F&data=05%7C01%7Ctobias.schaffner%40siemens.com%7C892055cedb0f4d51003208daad198a4e%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638012622458460393%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kT6UFfopXdw2Zx9ZsdUzA4SJ8l2zb8zw2qTG4JoxVow%3D&reserved=0
> >
> > Henning
>
> I ran into the same issue today.
>
> Looks like systemd-firstboot asks for a selection if /etc/locale.conf
> [1] is not present.
>
> We can fix this by creating the file with content
> LANG=${LOCALE_DEFAULT} in meta/classes/image-locales-extension.bbclass
>
> Do we want to go down that route or do we want to get rid of
> systemd-firstboot?
I think for the time being we want to just disable it via the cmdline.
It is unexpected and breaks non-interactive booting.
But looking at what that thing can do ... it seems valuable to keep it
in mind. It in fact does 3 key things which we kind of want to do in
any isar image as well. (and it can do more we also might want)
- hostname (part of almost every layer i know)
- rootpw (part of isar core)
- locales (part of isar core)
Maybe we can eventually use it for these purposes and drop our
implementations.
But back to the question on locale.conf. Generating that might also be
an option. Here i would suggest to see where it comes from in a debian
installed with the debian installer, if it is generated together with
locale.gen and friends ... yes we likely want to generate it in the
extension and solve the problem that way. Also have a look at the
reconfigure scripts that we cater for, and how they changed with that
more recent systemd.
Henning
> Tobias
>
> [1] https://man7.org/linux/man-pages/man5/locale.conf.5.html
>
> > Am Fri, 7 Oct 2022 15:25:13 +0200
> > schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> >
> >> Hi all,
> >>
> >> just installed a simple image (isar-cip-core) from a fresh sid of
> >> today and got this on first boot:
> >>
> >>
> >> Welcome to your new installation of Debian GNU/Linux bookworm/sid!
> >>
> >> Please configure your system!
> >>
> >> -- Press any key to proceed --[ OK ] Finished Flush Journal to
> >> Persistent Storage. [ OK ] Finished Load/Save Random Seed.
> >> Starting Regenerate sshd host keys...
> >> [ OK ] Finished Coldplug All udev Devices.
> >> Starting Helper to synchronize boot up for ifupdown...
> >> [ OK ] Finished Helper to synchronize boot up for ifupdown.
> >> [ OK ] Finished Regenerate sshd host keys.
> >> l
> >> ‣ Please enter system locale name or number (empty to skip, "list"
> >> to list options): list 1) C.UTF-8 2) en_US.UTF-8
> >>
> >>
> >> ‣ Please enter system locale name or number (empty to skip, "list"
> >> to list options):
> >>
> >>
> >> Anyone seens this already as well? What could be missing to
> >> preconfigure things as before?
> >>
> >> Jan
> >>
> >
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-20 10:54 ` Henning Schild
@ 2022-10-20 11:11 ` Schaffner, Tobias
2022-10-20 11:14 ` Henning Schild
0 siblings, 1 reply; 12+ messages in thread
From: Schaffner, Tobias @ 2022-10-20 11:11 UTC (permalink / raw)
To: Schild, Henning; +Cc: jan.kiszka, isar-users
On 20.10.22 12:54, Schild, Henning (T CED SES-DE) wrote:
> I think for the time being we want to just disable it via the cmdline.
> It is unexpected and breaks non-interactive booting.
>
> But looking at what that thing can do ... it seems valuable to keep it
> in mind. It in fact does 3 key things which we kind of want to do in
> any isar image as well. (and it can do more we also might want)
> - hostname (part of almost every layer i know)
> - rootpw (part of isar core)
> - locales (part of isar core)
>
> Maybe we can eventually use it for these purposes and drop our
> implementations.
>
> But back to the question on locale.conf. Generating that might also be
> an option. Here i would suggest to see where it comes from in a debian
> installed with the debian installer, if it is generated together with
> locale.gen and friends ... yes we likely want to generate it in the
> extension and solve the problem that way. Also have a look at the
> reconfigure scripts that we cater for, and how they changed with that
> more recent systemd.
>
> Henning
I would suggest to provide the locale.conf even if we disable systemd-firstboot
via the command line. Other packages might rely on a the new file as firstboot
ensures that it will be present on bookworm.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bookworm/sid: new interactive system locale setting on first boot
2022-10-20 11:11 ` Schaffner, Tobias
@ 2022-10-20 11:14 ` Henning Schild
0 siblings, 0 replies; 12+ messages in thread
From: Henning Schild @ 2022-10-20 11:14 UTC (permalink / raw)
To: Schaffner, Tobias (T CED SES-DE); +Cc: Kiszka, Jan (T CED), isar-users
Am Thu, 20 Oct 2022 13:11:44 +0200
schrieb "Schaffner, Tobias (T CED SES-DE)"
<tobias.schaffner@siemens.com>:
> On 20.10.22 12:54, Schild, Henning (T CED SES-DE) wrote:
>
> > I think for the time being we want to just disable it via the
> > cmdline. It is unexpected and breaks non-interactive booting.
> >
> > But looking at what that thing can do ... it seems valuable to keep
> > it in mind. It in fact does 3 key things which we kind of want to
> > do in any isar image as well. (and it can do more we also might
> > want)
> > - hostname (part of almost every layer i know)
> > - rootpw (part of isar core)
> > - locales (part of isar core)
> >
> > Maybe we can eventually use it for these purposes and drop our
> > implementations.
> >
> > But back to the question on locale.conf. Generating that might also
> > be an option. Here i would suggest to see where it comes from in a
> > debian installed with the debian installer, if it is generated
> > together with locale.gen and friends ... yes we likely want to
> > generate it in the extension and solve the problem that way. Also
> > have a look at the reconfigure scripts that we cater for, and how
> > they changed with that more recent systemd.
> >
> > Henning
>
> I would suggest to provide the locale.conf even if we disable
> systemd-firstboot via the command line. Other packages might rely on
> a the new file as firstboot ensures that it will be present on
> bookworm.
Yes simply follow any change that came in the reconfigure scripts and
the installer should be the way to go. The patch you did send looks
like you already had a look at the debconf stuff.
Henning
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-10-20 11:14 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07 13:25 bookworm/sid: new interactive system locale setting on first boot Jan Kiszka
2022-10-07 13:55 ` Henning Schild
2022-10-07 14:10 ` Jan Kiszka
2022-10-12 7:39 ` Florian Bezdeka
2022-10-12 8:03 ` Henning Schild
2022-10-13 12:50 ` Henning Schild
2022-10-20 8:51 ` Schaffner, Tobias
2022-10-20 9:18 ` Moessbauer, Felix
2022-10-20 10:54 ` Henning Schild
2022-10-20 11:11 ` Schaffner, Tobias
2022-10-20 11:14 ` Henning Schild
2022-10-19 11:28 ` Henning Schild
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox