Hi Karl, Thank you for bringing this up.
On Thu, Jan 17, 2019 at 7:10 AM Karl O. Pinc <k...@meme.com> wrote: > > Hello, > > Do you have any suggestions for updating the > Debian Policy docs so that packagers know what > must be done to inform when an update requires > a reboot? > > I filed the following bugs against debian-policy > and systemd: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919507 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919509 > thinking that packages are supposed to provide > breadcrumbs so that unattended-upgrades knows when > a package upgrade requires a reboot. > > I've been invited to submit a patch to Debian policy. > > But looking at the packaging of packages I _thought_ > flagged reboots I don't see anything. > > I know the kernel flags a reboot, but see that > unattended-upgrades is dropping a config into > /etc/kernel/postinst.d/. > > I thought libc6 flagged a reboot, but can't find > anything. > > I've got an email from a box that flagged a > reboot on upgrade of tomcat8, but can't find > anything in the packaging. Why I got an email is > now a mystery. > > I would think that having the unattended-upgrade > package have to keep track of which packages > require reboot would not scale.... I agree. I was surprised too, when I found the scripts for the kernel in unattended-upgrades. Please note that in Ubuntu update-notifier-common also ships a similar hook: /etc/kernel/postinst.d/update-notifier -> /usr/share/update-notifier/notify-reboot-required I agree that packages should ask for reboot themselves, but I'm OK with keeping the current logic in u-u for the kernels. Regarding the policy change I'd also mention /var/run/reboot-required.pkgs , like this: Maintainer scripts can signal that a reboot is required to fully apply the changes to the system by touching /var/run/reboot-required and adding the package name to /var/run/reboot-required.pkgs. Maintainer scripts should not add the package name to /var/run/reboot-required.pkgs if it is already present there. Thanks, Balint > > Thanks. > > Regards, > > Karl <k...@meme.com> > Free Software: "You don't pay back, you pay forward." > -- Robert A. Heinlein > > P.S. Somebody on #debian-mentors was able to do a > search today for all the packages which, I think, > contained mention of "reboot-required". I don't > know what they did or how they did it. > There was a list of maybe 15 or 20 packages, > but the remark was that some of these are > tool-related. (?) I forget the details. > -- Balint Reczey Ubuntu & Debian Developer