Re: [systemd-devel] What creates a new machine-id ?

2024-02-08 Thread Lennart Poettering
On Do, 08.02.24 09:35, Agrain Patrick (patrick.agr...@al-enterprise.com) wrote:

> Hello,
>
> Our embedded system is based on a Rocky Linux 8 distribution which embeds 
> systemd-239.
>
> At first bootup, a machine-id is created and remains persistent over the 
> following reboots.
> System upgrade sometimes creates a new machine-id, sometimes not.
> By 'system upgrade', I mean either new linux kernel or upgraded Rocky 
> packages or both.
>
> Could you precise me what event(s) in the previous upgrade cases
> trigger a new machine-id ?

See:

https://www.freedesktop.org/software/systemd/man/latest/machine-id.html#Initialization

Or in other words: the machine ID is supposed to be persisted in
/etc/. if your upgrade procedure somehow causes the machine ID to be
invalidated somehow, then we'll assign a new one though. We basically
make sure that whatever happens, on boot we initialize it.

Lennart

--
Lennart Poettering, Berlin


[systemd-devel] What creates a new machine-id ?

2024-02-08 Thread Agrain Patrick
Hello,

Our embedded system is based on a Rocky Linux 8 distribution which embeds 
systemd-239.

At first bootup, a machine-id is created and remains persistent over the 
following reboots.
System upgrade sometimes creates a new machine-id, sometimes not.
By 'system upgrade', I mean either new linux kernel or upgraded Rocky packages 
or both.

Could you precise me what event(s) in the previous upgrade cases trigger a new 
machine-id ?

Note: The consequence of a new machine-id is that we accumulate new directories 
in /var/log/journal and that partition fills up quite quickly then.

Thanks.
Best regards,
Patrick