Nullifying requirement to reboot after kernel update

Tom H tomh0665 at gmail.com
Mon Apr 13 14:04:08 UTC 2015


On Mon, Apr 13, 2015 at 9:48 AM, Chris <cpollock at embarqmail.com> wrote:
> On Mon, 2015-04-13 at 09:25 -0400, Tom H wrote:
>>
>> AFAIK, the message about rebooting after a kernel's installed is
>> triggered by "/etc/kernel/postinst.d/update-notifier".
>>
> Thanks Tom, I see what it does, runs a small script which puts this
> in /var/run
>
> echo "*** $(eval_gettext "System restart required") ***"
>> /var/run/reboot-required
> echo "$DPKG_MAINTSCRIPT_PACKAGE" >> /var/run/reboot-required.pkgs
>
> Hmm, wonder what would break if I just removed the script link in
> /etc/kernel/postinst.d/update-notifier and the actual script
> in /usr/share/update-notifier probably break the system or maybe it
> would be regenerated. I wouldn't actually remove it anyway just move to
> another folder within the main folder it's in now.

You're welcome.

All that you need to do is remove the symlink or symlink
"/etc/kernel/postinst.d/update-notifier" to "/dev/null" rather than to
"/usr/share/update-notifier/notify-reboot-required".

Just make a note of the latter file in case you want to restore this
functionality.




More information about the ubuntu-users mailing list