Option to automatically reboot Ubuntu for security updates
- 
We removed the explicit syncin the reboot script now: https://git.cloudron.io/cloudron/box/-/commit/dd75cdb37ed751b31c35755e5e8c2f96daeec81bLets see if this fixes the slow reboots at least. As mentioned in that commit, running syncon a system which is busy using the disks, it can take a long time. So usually first the processes have to be terminated and then thesyncshould be issued. This is what happens from now on then. I don't even remember why we put thatsyncthere in the first place.
- 
- 
Wow. π€― It's WAY faster now. Like, lightning fast.  I just did a reboot to finish a Ubuntu security update and everything was back up and running in less than 60 seconds. I almost couldn't believe it! Thanks! 
- 
@DanTheMan 
 Likely due to improvements in 18.04.4 and above.@Lonk 
 To avoid having to reboot the box, you can run your tests in a docker container using the sysbox-runc for full OS (machine image) capability in a docker container.Then just reboot the sysbox container. 
 See requirements: https://github.com/nestybox/sysbox-ee/blob/master/docs/distro-compat.md
- 
@DanTheMan 
 Likely due to improvements in 18.04.4 and above.@Lonk 
 To avoid having to reboot the box, you can run your tests in a docker container using the sysbox-runc for full OS (machine image) capability in a docker container.Then just reboot the sysbox container. 
 See requirements: https://github.com/nestybox/sysbox-ee/blob/master/docs/distro-compat.md
- 
Yep. For those cases it shouldn't be too bad: The fixed timeslots/dates can be communicated/planned accordingly and if it's on demand and no admin is available, the users can get told that they should be worried only if downtime is >1h or something like that. That's at least better than no patched server and in worst case coming home and finding a disaster  . .
- 
W warg referenced this topic on
- 
Ideally we soon can enable ubuntu livepatch by default, then this should go away. Until that it looks like we have some blocking process or so during reboot. We have gotten various reports now that reboots are slow and I also saw that on one of our company Cloudrons yesterday. Unfortunately we are not sure what happens yet. @nebulon just for information - livepatch doesn't mean you don't have to reboot - it just lets you postpone that moment as convenient. For sync- a good practice on old good *nix is to issuesynctwice before reboot - to make sure the buffers dumped for sure.On the reboot automation using third-party apps - it's doable; everything is, but why, if you can just add it inside of the system? 
 





 
 



