fedora-iot / greenboot

Generic Health Checking Framework for systemd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should all the greenboot-* systemd services be enabled?

alcir opened this issue · comments

commented

Unless greenboot is enabled by default in your distribution, enable it by running `systemctl enable greenboot-task-runner greenboot-healthcheck greenboot-status greenboot-loading-message`.

Do greenboot-rpm-ostree-grub2-check-fallback greenboot-grub2-set-counter redboot-task-runner redboot-auto-reboot should be enabled as well?

No, those are only triggered when a health check fails and handle the reboot/rollback of your system.

commented

mmm, are you sure? Because if I leave them disabled (I was performing some test on Fedora Silverblue), greenboot doesn't work as described.
In addition, on Fedora IoT (if I'm not wrong) these services seem to be enabled.

mmm, are you sure? Because if I leave them disabled (I was performing some test on Fedora Silverblue), greenboot doesn't work as described. In addition, on Fedora IoT (if I'm not wrong) these services seem to be enabled.

Because IoT enables them in the IoT presets: /usr/lib/systemd/system-preset/80-iot.preset

commented

Because IoT enables them in the IoT presets: /usr/lib/systemd/system-preset/80-iot.preset

So in a system without such presets, they should be manually enabled?

Because IoT enables them in the IoT presets: /usr/lib/systemd/system-preset/80-iot.preset

So in a system without such presets, they should be manually enabled?

Not all, just the ones specified in the presets.

commented

Yes.
Looking at /usr/lib/systemd/system-preset/80-iot.preset, what I mean in this issue is: in the readme, in addition to greenboot-task-runner greenboot-healthcheck greenboot-status greenboot-loading-message also greenboot-rpm-ostree-grub2-check-fallback greenboot-grub2-set-counter redboot-task-runner redboot-auto-reboot should be added. Isn't it?

@alcir all the greenboot-* services present in 80-iot.preset should be added to the README for completeness. Feel free to open a PR.

It does looks like greenboot-loading-message.service is not currently enabled in the preset file. I'm not sure whether that's intended or an oversight, in which case it should probably be added to the preset.

commented

It does looks like greenboot-loading-message.service is not currently enabled in the preset file. I'm not sure whether that's intended or an oversight, in which case it should probably be added to the preset.

https://src.fedoraproject.org/rpms/fedora-release/pull-request/245

Thank you all.