public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	isar-users <isar-users@googlegroups.com>
Subject: Re: bookworm/sid: new interactive system locale setting on first boot
Date: Wed, 12 Oct 2022 10:03:53 +0200	[thread overview]
Message-ID: <20221012100353.25bb5881@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <a3e90ba4-fc20-1883-906d-7ab10d04ed0a@siemens.com>

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
> >   
> 


  reply	other threads:[~2022-10-12  8:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-07 13:25 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221012100353.25bb5881@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=florian.bezdeka@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox