summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-01-23 14:10:15 +0100
committerHarald Hoyer <harald@redhat.com>2013-01-23 15:24:27 +0100
commitc8d685c9d3860e49f39a9c85ffebbb4c4fec341f (patch)
tree5ae4ecf6141afe72e74c2f28d12b3651d4df4952 /dracut.sh
parentd6d3173916aa2823a5945490fa67977d60a0c146 (diff)
downloaddracut-c8d685c9d3860e49f39a9c85ffebbb4c4fec341f.tar.gz
dracut-c8d685c9d3860e49f39a9c85ffebbb4c4fec341f.tar.bz2
dracut-c8d685c9d3860e49f39a9c85ffebbb4c4fec341f.zip
dracut-functions.sh: cope with optional field #7 in mountinfo
also handle fstab entries with LABEL=, UUID= and PARTUUID=
Diffstat (limited to 'dracut.sh')
-rwxr-xr-xdracut.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/dracut.sh b/dracut.sh
index 23ffaa4b..cfd10a14 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -766,18 +766,18 @@ if [[ $hostonly ]]; then
fi
_get_fs_type() (
- [[ $1 ]] || return
+ [[ $1 ]] || return 1
if [[ -b $1 ]] && get_fs_env $1; then
echo "$(readlink -f $1)|$ID_FS_TYPE"
- return 1
+ return 0
fi
if [[ -b /dev/block/$1 ]] && get_fs_env /dev/block/$1; then
echo "$(readlink -f /dev/block/$1)|$ID_FS_TYPE"
- return 1
+ return 0
fi
if fstype=$(find_dev_fstype $1); then
echo "$1|$fstype"
- return 1
+ return 0
fi
return 1
)