If target is in format of UUID= or LABEL=, current code will fail as it
expects target to be the absoluta path to the block device. Check for
the fstype instead.
Signed-off-by: Kairui Song <kasong(a)redhat.com>
---
mkdumprd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkdumprd b/mkdumprd
index c7b8f17..3378952 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -92,7 +92,7 @@ to_mount() {
_mntopts="$_new_mntpoint $_fstype $_options"
# for non-nfs _target converting to use udev persistent name
- if [ -b "$_target" ]; then
+ if [[ "$_fstype" != *nfs ]]; then
_pdev="$(get_kdump_persistent_dev $_target)"
if [ -z "$_pdev" ]; then
return 1
--
2.26.2