Can Ubuntu Core 26 automatically restart when needed after upgrades?

Ubuntu Version: Core 26

Desktop Environment (if applicable): n/a (server)

Query:

Ubuntu Server 26.04 and Ubuntu Core 26 both run automatic updates (the former uses unattended-upgrades, and both run snap refresh).

It’s possible to set up Ubuntu Server 26.04 to automatically restart when required, e.g. after a kernel upgrade. I do this on mine.

Is it possible to do the same with Ubuntu Core 26?

Ubuntu Core is designed for consumer devices so it will always automatically reboot if snaps that require it are updated, that is true for kernel, gadget and the base snap that acts as your rootfs, so on UbuntuCore you’d rather want the opposite :slight_smile: (which you can achive by setting update schedules, putting snaps on hold for manual refreshing only or using validation sets that hold back snaps unless you allow the update in bulk)

EDIT: other snaps than the ones listed above (i.e. app snaps) will usually not require a reboot …

2 Likes

Thank you. As a reboot usually happens fast (about one minute), that’s unlikely to present a problem.

Can I control specifically when the machine reboots? For example, I have set my older server to reboot (if needed) at 2:45 a.m., but I wouldn’t know how to do that on Ubuntu Core 26.

No, but you can set up update schedules:

https://snapcraft.io/docs/how-to-guides/manage-snaps/manage-updates/#refresh-timer

(you can indeed always call a snap refresh manually if you actually have an UbuntuCore with user login)

1 Like

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.