[ s/exit/exist/ in near the end of the second paragraph above, typo ] Also, as a temporary workaround, I've found that the kernel postinst script *does* directly create /var/run/do-not-hibernate when a kernel is upgraded, so that can be used to determine "needs reboot" as well for now.
** Description changed: - - The postinst script for Maverick (and probably other releases') kernels ultimately signal that a reboot is required by checking for and executing (if exists) "/usr/share/update-notifier/notify-reboot-required". That script in turn generates "/var/run/reboot-required", which then other scripts (unattended-upgrade, for example) look for to indicate that a package update requires a reboot. For that matter, /var/run/reboot-required is what any other scripts would want to look for (sysadmin's own scripts on a remote headless server? EC2?). + The postinst script for Maverick (and probably other releases') kernels + ultimately signal that a reboot is required by checking for and + executing (if exists) "/usr/share/update-notifier/notify-reboot- + required". That script in turn generates "/var/run/reboot-required", + which then other scripts (unattended-upgrade, for example) look for to + indicate that a package update requires a reboot. For that matter, + /var/run/reboot-required is what any other scripts would want to look + for (sysadmin's own scripts on a remote headless server? EC2?). The meta-problem here is that update-notifier is not normally installed in a headless server environment like EC2, and depends on the whole mess of X dependencies since it's related to graphical notifications as well. - Thus the notify-reboot-required script does not exit, thus /var/run + Thus the notify-reboot-required script does not exist, thus /var/run /reboot-required does not get generated. The best fix would probably be to have the kernel postinst script create /var/run/reboot-required directly itself, in addition to executing update-notifier hooks if that package happens to be installed. -- Reboot notification should not require X https://bugs.launchpad.net/bugs/666348 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs