Hi Marek,

I used the following line in local.conf and the firstboot worked:
IMAGE_PREPROCESS_COMMAND:remove = "systemd_preset_all;"

Regards,
Qi

-----Original Message-----
From: Marek Vasut <[email protected]> 
Sent: Friday, March 17, 2023 7:54 PM
To: Chen, Qi <[email protected]>; [email protected]
Cc: Alexandre Belloni <[email protected]>; Armin Kuster 
<[email protected]>; Bob Henz <[email protected]>; Kristian Klausen 
<[email protected]>; Nick Potenski <[email protected]>; Richard Purdie 
<[email protected]>
Subject: Re: [OE-core] [PATCH] systemd-systemctl: Create machine-id with 
"uninitialized" text in it

On 3/15/23 11:10, ChenQi wrote:

Hi,

> This patch is forcing systemd to do preset-all at boot time (first 
> boot) in a function that simulates 'preset-all' at rootfs time.
> 
> If we look at the comments above the changed line, we can see that the 
> /etc/machine-id file was deliberately created as empty, for the 
> purpose of making systemd not treat the system as first boot.
> """
>      # If we populate the systemd links we also create 
> /etc/machine-id, which
>      # allows systemd to boot with the filesystem read-only before 
> generating
>      # a real value and then committing it back.
>      #
>      # For the stateless configuration, where /etc is generated at 
> runtime
>      # (for example on a tmpfs), this script shouldn't run at all and 
> we
>      # allow systemd to completely populate /etc.
> """
> 
> I'm going to send out a patch to revert this patch.

Hmmm, the problem is that without this patch, systemd firstboot does not work 
and I would like to use that. How can we accommodate both options, i.e. no 
breakage for you and working systemd-firstboot ?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#178755): 
https://lists.openembedded.org/g/openembedded-core/message/178755
Mute This Topic: https://lists.openembedded.org/mt/97273986/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to