Unattended-Upgrade::Automatic-Reboot default value
In my /etc/apt/apt.conf.d/50unattended-upgrades
i found this:
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";
The issue is that I don't know what the default value is and so if I need to uncomment the line (I don't want my server to reboot btw).
Should I uncomment the line by safety? Are there further actions to perform after doing that?
Solution 1:
The default for automatically rebooting after unattended-upgrades is FALSE.
You can confirm on your own system by looking where the default value is stored, in the script itself:
grep 'Automatic-Reboot"' /usr/bin/unattended-upgrade
The default could change with a software upgrade, although that seems unlikely. To be certain your systems don't reboot by after automatic upgrades, explicitly disable rebooting in your configuration.
Solution 2:
If you don't want it to auto-reboot, make that section look like this:
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "false";
I have it set that way and it works.
This page says that not rebooting is the default, but I'm pretty sure that's wrong. I think the first time my system autoinstalled a kernel (before I changed the config), it rebooted. But in either case, the config above will prevent it.