summaryrefslogtreecommitdiffstats
path: root/package/block-mount
diff options
context:
space:
mode:
Diffstat (limited to 'package/block-mount')
-rw-r--r--package/block-mount/files/block.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/block-mount/files/block.sh b/package/block-mount/files/block.sh
index 80f74b210..ac8ca3bfb 100644
--- a/package/block-mount/files/block.sh
+++ b/package/block-mount/files/block.sh
@@ -157,7 +157,7 @@ libmount_find_token() {
local token="$1"
local value="$2"
local device
- device="$(blkid | grep "$token=\"$value\"" | cut -f1 -d:)"
+ device="$(blkid -w /dev/null -c /dev/null | grep "$token=\"$value\"" | cut -f1 -d:)"
echo "$device"
}