Logout-script to "run update next boot"?

Is there a logout script I can add to make the updates run next time I boot when choosing “update and shut down”?
Instead of rebooting and then shutting down I mean, like it acts by default.
It’s not really an automatic line of events after clicking the “shut down” button when you have encryption, as a work-around I choose “update and reboot” and press the physical power button at bios when I want to update and shut down. When I remember, that is, and is also not really automatic.

Would some form of logout script work to handle this the way I wish?

Maybe you can use dnf5 offline reboot --poweroff see Offline Command — dnf5 documentation for the rest of the offline commands.

1 Like

I’ll try that next update.
I suspect it is the equivalent of “update and shut down” from GUI menu, instead of “update and reboot” - but it’s worth a shot.