Can't manage to set auto reboot

Hello,
i managed to schedule auto updates at wanted times, and created the file /etc/transactional-update.conf
with this content:

# Configuration file for transactional-update
# See transactional-update.conf(5) for details

# Reboot method
# Valid values: auto rebootmgr notify systemd kexec kured none
REBOOT_METHOD=auto

# zypper update method
# Valid values: dup up
UPDATE_METHOD=dup

# Import new repository GPG keys automatically
# Valid values: 0 1

rebootmgr is active.

What’s the content of /etc/rebootmgr.conf ?

[rebootmgr]
window-start=08:30
window-duration=1h30m
strategy=best-effort

As it is configured now with a maintenance window and best-effort as strategy it should do the reboot between 08:30h and 10:00h.

If that was not your intention you can change to strategy=instantly for a reboot directly after the update.

Or did you configure it that way by intention and it doesn’t reboot within the window?

With sudo rebootmgrctl status
you can check if a reboot is requested.

The 2 machine i have at work do not update automatically anymore, so i think is a problem of the update conf (i need to investigate). The 1 i have at home it does, and reboot correctly.

Can i add another window-start= for have 2 windows?

The man-page writes about “the” maintenance window. I guess that it’s not possible, but if you have the possibility to test it you can try.

If you need to do your updates at defined times/days you could use the transactional-update.timer

Yes, i already set that.
I set the update at 8:10 AM and the window to reboot at 8:30-10 AM. Now are 9:30 AM, so it is in the reboot window, but it not start.

Status: Reboot requested, waiting for maintenance window

EDIT: it rebooted after i posted this :smiley: Guess i solved.

1 Like

I tried to set it to “instantly”, but have this issue:

nov 25 09:30:38  systemd[1]: Starting Reboot Manager...
nov 25 09:30:38  systemd[1]: Started Reboot Manager.
nov 27 08:00:20  rebootmgrd[1087]: Reboot already in progress, ignored
nov 27 08:19:18  rebootmgrd[1087]: Reboot already in progress, ignored

Was the reboot indeed already in progress/done by that times?

What does sudo rebootmgrctl get-strategy return?

Just to verify that it respects thechanges ypu made.

Reboot strategy: instantly

I rebooted it manually, because the windows was already ended. I wait till tomorrow if work or not. And see if revert back to best-effort solve the issue.

1 Like

Ok, today it rebooted itself, both the pc i have at the correct time. Hope is solved and keep to auto update and reboot.

Good, I hope so too.