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

Agrain Patrick patrick.agrain at al-enterprise.com
Tue Feb 20 08:14:56 UTC 2024


Hello,

Thanks for pointing that. It highlighted some other aspect of the problem, especially for KVM.

Best regards,
Patrick Agrain

-----Message d'origine-----
De : Lennart Poettering <lennart at poettering.net> 
Envoyé : jeudi 8 février 2024 11:57
À : Agrain Patrick <patrick.agrain at al-enterprise.com>
Cc : systemd-devel at lists.freedesktop.org
Objet : EXT: Re: [systemd-devel] What creates a new machine-id ?


** External email - Please consider with caution **


On Do, 08.02.24 09:35, Agrain Patrick (patrick.agrain at 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


More information about the systemd-devel mailing list