🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.devel
Article #72

How to indicate that a package won't work without systemd

#72
From: Marc Haber
Date: Mon, 19 Oct 2026 23:10
23 lines
2526 bytes
Hi,

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"?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421
Technical Details
Message-ID: <NQ4Ep-6Ctz-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Marc Haber <mh+debian-devel@zugschlus.de>
Newsgroups: linux.debian.devel
Subject: How to indicate that a package won't work without systemd
Date: Tue, 20 Oct 2026 01:10:01 +0200
Message-ID: <NQ4Ep-6Ctz-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-devel-request@lists.debian.org  Mon Oct 19 23:00:09 2026
Old-Return-Path: <mh+debian-devel@zugschlus.de>
X-Amavis-Spam-Status: No, score=-1.9 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -5.5
X-Greylist: delayed 613 seconds by postgrey-1.37 at bendel; Mon, 19 Oct 2026 22:42:36 UTC
Mail-Followup-To: debian-devel@lists.debian.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
User-Agent: Mutt/2.2.13 (2024-03-09)
X-Mailing-List: <debian-devel@lists.debian.org> archive/latest/372678
List-ID: <debian-devel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-devel/>
List-Archive: https://lists.debian.org/msgid-search/atac2Wtu3RkizT42@torres.zugschlus.de
Approved: robomod@news.nic.it
Lines: 23
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 20 Oct 2026 00:42:33 +0200
X-Original-Message-ID: <atac2Wtu3RkizT42@torres.zugschlus.de>