1
0
Fork 0

Adding debconf note when run on non-systemd systems (Closes: #1037496).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-14 06:06:29 +01:00
parent 462921ab15
commit 72692e473e
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 23 additions and 0 deletions

13
debian/mdadm.config vendored
View file

@ -32,6 +32,19 @@ fi
db_capb escape
# if system has root on md
if findmnt / 2>/dev/null | grep -qs \/dev\/md && \
# and system is not a container
! grep -qs ':cpuset:/$' /proc/1/cgroup && \
# and system is not a chroot
[ "$(stat -c %d/%i /)" != "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ] && \
# and systemd is not running
[ -z "$(pidof systemd)" ]
then
db_input high mdadm/init-system-not-systemd || true
db_go
fi
db_input medium mdadm/autocheck || :
db_go