public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 0/1] classes/image-postproc: chroot before postprocessing /etc/machine-id
@ 2025-06-27  9:47 alexander.heinisch via isar-users
  2025-06-27  9:47 ` [PATCH 1/1] " alexander.heinisch via isar-users
  0 siblings, 1 reply; 2+ messages in thread
From: alexander.heinisch via isar-users @ 2025-06-27  9:47 UTC (permalink / raw)
  To: isar-users; +Cc: Alexander Heinisch

From: Alexander Heinisch <alexander.heinisch@siemens.com>

We were experimenting with /etc-overlay removal
ending up with systemd detecting first-boot conditions due to
unitinitialized /etc/machine-id.
To circumvent this on ro etc, we put a link on /etc/machine-id to
a mutable location instead. Without chroot writing to /etc/machine-id
linked to e.g. /var/local/machine-id resolves to the hosts /var partition
instead of the file in ${IMAGE_ROOTFS}.
Apart from that overriding the machine-id-commit service was needed
to make this setup work properly. Not sure if a patch for that is
desired as well?

Alexander Heinisch (1):
  classes/image-postproc: chroot before postprocessing /etc/machine-id

 meta/classes/image-postproc-extension.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.39.5

-- 
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 visit https://groups.google.com/d/msgid/isar-users/20250627094756.151803-1-alexander.heinisch%40siemens.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-27  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-27  9:47 [PATCH 0/1] classes/image-postproc: chroot before postprocessing /etc/machine-id alexander.heinisch via isar-users
2025-06-27  9:47 ` [PATCH 1/1] " alexander.heinisch via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox