[debhelper-devel] Bug#772555: init-system-helpers: deb-systemd-helper does not respect systemd Preset files

Raphael Hertzog hertzog at debian.org
Mon Feb 22 10:31:42 UTC 2016


Hello Andreas and debhelper maintainers,

I saw the move of update-rc.d to init-system-helpers in 805487 and the bug
mentioned some plans for further changes to move dh_systemd_enable and
related functionality to debhelper... I would like to draw the attention
of people interested in that to the wishlist below: we should be able to
use systemd preset files but we can't because initial installation doesn't
call "systemctl preset" in deb-systemd-helper...

I would very much like to see this fixed in stretch and while it's
relatively straightforward, when I try to think about the details, I
always get lost on how it should be done... I have troubles with the
init-system-helpers codebase and its interactions with the various
init systems. Andreas, given your recent involvment in
init-system-helpers, is it something that you'd be willing to tackle?

If it can help, Kali is willing to sponsor the work to get this feature
done... get in touch with me if you are interested.

Cheers,

On Mon, 08 Dec 2014, Raphaël Hertzog wrote:
> Package: init-system-helpers
> Version: 1.22
> Severity: wishlist
> User: devel at kali.org
> Usertags: origin-kali
> 
> Filing a bug following this IRC conversation:
> 15:32  * buxy finds out http://freedesktop.org/wiki/Software/systemd/Preset/ 
> 15:32 <buxy> is this usable in Debian?
> 15:33 <buxy> looking at deb-systemd-helper, I don't see anything implying
> that "systemctl preset" would be used...
> 15:34 <buxy> this is a bit of a pity since it means that no derivative can
> implement a different default policy
> 15:53 <Md> buxy: yes, but for stretch I think that we can just update
> deb-systemd-helper to support this
> 
> It would be nice if we could make use of systemd Presets to disable some
> services by default, and to let derivatives make different choices than
> Debian.
> 
> systemd upstream expects distributions to call "systemctl preset
> foo.service" when the package gets installed to initially enable/disable
> the service.
> 
> deb-systemd-helper doesn't do this currently.
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



More information about the debhelper-devel mailing list