summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2024-12-30 05:20:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-30 05:20:55 +0000
commit034ea30adfc4ceadf48e59eb1d58c5aa9af52f1b (patch)
tree3b70ed75f33002da8abe4cc19d317707cf0a042d
parentReleasing debian version 4.3+20241202-1. (diff)
downloadmdadm-034ea30adfc4ceadf48e59eb1d58c5aa9af52f1b.tar.xz
mdadm-034ea30adfc4ceadf48e59eb1d58c5aa9af52f1b.zip
Fix chroot detection to avoid displaying the systemd note when mdadm is getting installed within d-i (Closes: #1091617).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/mdadm.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/mdadm.config b/debian/mdadm.config
index 848e6b6..2bd3489 100644
--- a/debian/mdadm.config
+++ b/debian/mdadm.config
@@ -37,7 +37,7 @@ 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)" ] && \
+[ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ] && \
# and systemd is not running
[ -z "$(pidof systemd)" ]
then