Hi,

On Tue, 20 Oct 2026 00:42:33 +0200, Marc Haber <[email protected]>
wrote:
> I would like to write package dependencies that a certain package 
> indicates that it won't work without systemd, most prominently that it 
> would NOT work with sysvinit.
> 
> My gut feeling tells me to depend on systemd-sysv as that one is the one 
> setting the symlink from /sbin/init to systemd, but that seems kind of 
> wrong for me since it has "sysv" in the name, the package description 
> doesn't suggest that it is a package THIS central, and I don't know 
> whether a, for example, dracut-based initramfs will care where 
> /sbin/init points to at all.
> 
> How do I have a package depend on "this system uses systemd as init"?

This doesn’t answer your question, but can the package be used sensibly
*without* an init at all? For example, could it be used in a container? If
so, then a (strong) dependency on systemd might not be desirable.

Regards,

Stephen

Attachment: pgpXVyUkljcdp.pgp
Description: OpenPGP digital signature

Reply via email to