diff options
author | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-10-18 15:40:29 +0000 |
---|---|---|
committer | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-10-18 15:40:29 +0000 |
commit | f7c7e03015b659c2c8c6a17b5a198a8fcdbc670f (patch) | |
tree | 1d834c34cb5cf928d2317b7c56af75941cda4f40 /debian/mdadm.config | |
parent | 7be39f10a3fd97749ddfe1994212fd05778743e7 (diff) |
* chroot detection now also works for 2.6.18 and beyond (c.f. kernel commit
778c1144771f0064b6f51bee865cceb0d996f2f9).
Diffstat (limited to 'debian/mdadm.config')
-rw-r--r-- | debian/mdadm.config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/mdadm.config b/debian/mdadm.config index 505496a4..7dcb8504 100644 --- a/debian/mdadm.config +++ b/debian/mdadm.config @@ -57,7 +57,7 @@ if [ -s $DEBIANCONFIG ] ; then fi chrooted() { - test ! -r /proc/1/root + test "$(stat -c "%d/%i" /)" != "$(stat -Lc "%d/%i" /proc/1/root 2>/dev/null)" } get_root_raiddev() { |