On Fri, Apr 17, 2020 at 12:49 PM Peter Kjellerstedt
<[email protected]> wrote:
>
> In May last year, two changes were integrated related to how
> /etc/machine-id is created. The first [1] moved the creation
> from the systemd recipe to rootfs-postcommands.bbclass. The
> second [2] introduced creation of it via image.bbclass and
> systemd-systemctl-native unless the stateless-rootfs distro
> feature is set.
>
> When I look at these changes, I get the feeling that the
> second will never have any impact since the first will always
> create the /etc/machine-id file for all images (as long as
> systemd is enabled).
>
> Should the creation of /etc/machine-id be removed from
> rootfs-postcommands.bbclass so that it is only created in
> image.bbclass where there is extra logic to handle the
> stateless case?
>
Oddly enough, I was staring at that a few days ago and I think you're
completely right, the one in rootfs-postcommands is redundant. I
suspect I should have removed it as part of c5fb399f5894 ("systemd:
Default to non-stateless images").
> //Peter
>
> [1]
> https://git.openembedded.org/openembedded-core/commit/?id=76444b63e614baea33c044851a5859f6d1e69729
> [2]
> https://git.openembedded.org/openembedded-core/commit/?id=c5fb399f5894c16cf8eeadd507dc38c29b0fd657
>
--
Alex Kiernan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#137268):
https://lists.openembedded.org/g/openembedded-core/message/137268
Mute This Topic: https://lists.openembedded.org/mt/73075192/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-