stages/rpm: support systemd-first-boot
The protocol described in machite-id(5) describes how ConditionFirstBoot is
triggered in case /etc/machine-id does not exist during boot. Apart from
triggering this condition, the behaviour is the same as when /etc/machine-id is
empty.
When first-boot is set to true, /etc/machine-id is not created unless it existed. If first-boot is false (or unset) an empty /etc/machine-id is created
as before.
I suggest using this in the interactive installer ISO, at least in case user configuration has not been specified.
Can't we reuse our own first-boot implementation for this?
Can't we reuse our own
first-bootimplementation for this?
Ah, yeah, that would work. Though as far as I recall the reason we did that at all was to avoid triggering systemd-first-boot.service, but as that's what we want here, I figured using the native thing would make more sense?
Ah, yeah, that would work. Though as far as I recall the reason we did that at all was to avoid triggering
systemd-first-boot.service, but as that's what we want here, I figured using the native thing would make more sense?
Probably would make more sense. I guess I'm curious why we don't use the native one for the other stuff as well.
I guess I'm curious why we don't use the native one for the other stuff as well.
I think at the time I couldn't figure out how to ensure we didn't block on anything interactive during first boot. Though in this case that's exactly what we want :)
Well this all makes sense to me
I'm unlikely to have time to finish this up, feel free to take it over / consider it an RFE, if anyone is interested.
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.
This PR represents a recurring issue with how we handle (and prevent) first-boot tasks. I don't know if this actual PR will be used in the end, but it's definitely something we need to figure out at some point. I'd rather we keep it open until we decide what to do with it.
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 30+7 days with no activity.
I'm closing this because the continuation of this one (https://github.com/osbuild/osbuild/pull/1452) is now merged. Please reopen if I missed something here.