summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorslashdd <[email protected]>2016-09-20 13:07:58 -0400
committerBrian Behlendorf <[email protected]>2016-09-20 10:07:58 -0700
commit792517389fad5c495a2738b61c2e9c65dedaaa9a (patch)
tree5eef2ac0ecc1db47b3f11ec4ba12a97b6427e1b7 /scripts
parent25e2ab16be74cb37934e6736a1dc10fd50a00c56 (diff)
Change /etc/mtab to /proc/self/mounts
Fix misleading error message: "The /dev/zfs device is missing and must be created.", if /etc/mtab is missing. Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Eric Desrochers <[email protected]> Closes #4680 Closes #5029
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ziltest.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/ziltest.sh b/scripts/ziltest.sh
index 62cf09e88..bb816293f 100755
--- a/scripts/ziltest.sh
+++ b/scripts/ziltest.sh
@@ -185,7 +185,11 @@ CHECKSUM_BEFORE=$(sha256sum -b "$PAYLOAD")
#
# TX_WRITE (small file with ordering)
#
-cp /etc/mtab $ROOT/small_file
+if is_linux; then
+ cp /proc/self/mounts $ROOT/small_file
+else
+ cp /etc/mtab $ROOT/small_file
+fi
cp /etc/profile $ROOT/small_file
#