I would like to know if there is a way to reboot the system after ignition finishes.
I’m running a systemd unit once to customize Fedora CoreOS (including layering packages, enabling services, etc.) as well as a user systemd unit to tweak some stuff and I would like to reboot once after everything finish.
hey @minWi - a previous version of our OS Extensions documentation did just this.
# installing nano as a layered package with rpm-ostree
- name: rpm-ostree-install-nano.service
Description=Layer nano with rpm-ostree
# We run after `systemd-machine-id-commit.service` to ensure that
# `ConditionFirstBoot=true` services won't rerun on the next boot.
# We run before `zincati.service` to avoid conflicting rpm-ostree
ExecStart=/usr/bin/rpm-ostree install --allow-inactive nano
ExecStart=/bin/systemctl --no-block reboot