diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-18 05:24:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-18 05:34:44 +0000 |
commit | d129fece2883e34c579ac51d7002b4816e276851 (patch) | |
tree | d401ee137e2bec9b6ffcea47af43503301e4f2bf /debian/mdadm.config | |
parent | Updating regex in logcheck ignore patterns for kernels md tunining message (L... (diff) | |
download | mdadm-d129fece2883e34c579ac51d7002b4816e276851.tar.xz mdadm-d129fece2883e34c579ac51d7002b4816e276851.zip |
Adding debconf note when run on non-systemd systems (Closes: #1037496).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/mdadm.config')
-rw-r--r-- | debian/mdadm.config | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/mdadm.config b/debian/mdadm.config index 02d6b43..848e6b6 100644 --- a/debian/mdadm.config +++ b/debian/mdadm.config @@ -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 |