mbox series

[0/1] classes/image-postproc: chroot before postprocessing /etc/machine-id

Message ID 20250627094756.151803-1-alexander.heinisch@siemens.com
Headers show
Series classes/image-postproc: chroot before postprocessing /etc/machine-id | expand

Message

alexander.heinisch June 27, 2025, 9:47 a.m. UTC
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