public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Felix Moessbauer <felix.moessbauer@siemens.com>
To: isar-users@googlegroups.com
Cc: tobias.schmidl@siemens.com, henning.schild@siemens.com,
	jan.kiszka@siemens.com,
	Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH 0/1] fix on-first-boot for systemd >= 247
Date: Fri, 22 Jul 2022 00:04:03 +0200	[thread overview]
Message-ID: <20220721220404.1069481-1-felix.moessbauer@siemens.com> (raw)

This patch should fix the missing machine-id, as well as the first-boot target.
Please review carefully and test this on various layers.
Feedback is highly appreciated, especially for more complex images like SWU, ro root+overlay, no initrd, ubuntu and debian buster.

Snippet from journal on first boot of the image:

Jul 21 21:52:26 test-image systemd[1]: Detected architecture x86-64.
Jul 21 21:52:26 test-image systemd[1]: Detected first boot.
Jul 21 21:52:26 test-image systemd[1]: Set hostname to <test-image>.
Jul 21 21:52:26 test-image systemd[1]: Initializing machine ID from KVM UUID.
Jul 21 21:52:26 test-image systemd[1]: Failed to populate /etc with preset unit settings, ignoring: Read-only file system
Jul 21 21:52:26 test-image systemd[1]: Queued start job for default target Graphical Interface.

Snipped from second boot:

Jul 21 21:55:54 test-image systemd[1]: Detected architecture x86-64.
Jul 21 21:55:54 test-image systemd[1]: Set hostname to <test-image>.
Jul 21 21:55:54 test-image systemd[1]: Queued start job for default target Graphical Interface.

cat /proc/cmdline
initrd=\initrd.img-5.10.0-16-amd64 LABEL=Boot root=PARTUUID=5e078448-eeb1-4fc4-acd3-d3db9c93a430 rootwait console=tty0 console=ttyS0,115200

Best regards,
Felix

Felix Moessbauer (1):
  fix on-first-boot for systemd > 247

 meta/classes/image-postproc-extension.bbclass | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

-- 
2.30.2


             reply	other threads:[~2022-07-21 22:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-21 22:04 Felix Moessbauer [this message]
2022-07-21 22:04 ` [PATCH 1/1] " Felix Moessbauer
2022-07-22  7:34   ` Henning Schild
2022-07-22  8:37     ` Moessbauer, Felix
2022-07-25 14:00       ` Moessbauer, Felix
2022-07-22  8:02   ` Schmidl, Tobias
2022-07-22  8:27     ` Henning Schild
2022-07-22  8:34       ` Moessbauer, Felix

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=20220721220404.1069481-1-felix.moessbauer@siemens.com \
    --to=felix.moessbauer@siemens.com \
    --cc=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=tobias.schmidl@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