Nullifying requirement to reboot after kernel update

Chris cpollock at embarqmail.com
Mon Apr 13 19:56:41 UTC 2015


On Mon, 2015-04-13 at 10:04 -0400, Tom H wrote:
> 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.
> 
Thanks Tom, just made a 'hold' folder in the /etc/kernel/postinst.d/
folder and moved the symlink there. 

Chris

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11°N 97.89°W (Elev. 1092 ft)
14:55:08 up 4 days, 22:32, 1 user, load average: 0.10, 0.12, 0.13
Ubuntu 14.04.2 LTS, kernel 4.0.0-997-generic #201503310205 SMP Tue Mar
31 02:07:04 UTC 2015





More information about the ubuntu-users mailing list