Bug#910377: Inhibit reboot/shutdown if dpkg is running

Michael Biebl biebl at debian.org
Fri Oct 5 20:28:45 BST 2018


Am 05.10.18 um 18:36 schrieb Laurent Bigonville:
> Package: systemd
> Version: 239-10
> Severity: wishlist
> 
> Hi,
> 
> Not sure if this should be reported here or in dpkg
> 
> Shouldn't it be intresting to add a hook in dpkg to inhibit the
> reboot/shutdown of the machine while packages are being
> updated/installed?
> 


I don't see how this could be implemented via a dpkg hook.
Can you elaborate, maybe provide a hook file which implements what you
have in mind?

That said, also keep in mind, that the inhibit mechanism does not work
if the reboot request is triggered by privileged users [1], e.g. if you
trigger a reboot as root, an existing inhibitor blocks are ignored.

Michael

[1] https://github.com/systemd/systemd/issues/6644

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181005/a9337de1/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list