From 028ed93e202dfb0520278b7edb6def44bc50fc57 Mon Sep 17 00:00:00 2001 From: Mark Hindley Date: Sat, 2 Apr 2022 09:46:32 +0100 Subject: [PATCH] Add preinst to abort installation on systemd booted systems. --- debian/preinst | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 debian/preinst diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..f058d9f --- /dev/null +++ b/debian/preinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e +# +# Prevent installation if systemd is the active init. +# +if [ -d /run/systemd/system ]; then + echo "systemd is the active init system, ${DPKG_MAINTSCRIPT_PACKAGE} cannot replace or provide real systemd functionality." + exit 1 +fi +#DEBHELPER#