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@debian.org>
This commit is contained in:
parent
d6897b0fdb
commit
9d35335f7a
1 changed files with 1 additions and 1 deletions
2
debian/mdadm.config
vendored
2
debian/mdadm.config
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue