diff options
author | Harald Hoyer <harald@redhat.com> | 2013-01-23 14:10:15 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-01-23 15:24:27 +0100 |
commit | c8d685c9d3860e49f39a9c85ffebbb4c4fec341f (patch) | |
tree | 5ae4ecf6141afe72e74c2f28d12b3651d4df4952 /dracut.sh | |
parent | d6d3173916aa2823a5945490fa67977d60a0c146 (diff) | |
download | dracut-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-x | dracut.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 ) |