summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-02-05 16:45:42 +0100
committerHarald Hoyer <harald@redhat.com>2013-02-05 16:45:42 +0100
commit19bab59c48ba6edbdf9d6d9f339baef250bdd4a6 (patch)
tree4dd78a31a6b039371af4b3174c8610b6b22376b1 /dracut.sh
parentd8b627b9dcd12c5d4a967f7e8143ecf63d75be1f (diff)
downloaddracut-19bab59c48ba6edbdf9d6d9f339baef250bdd4a6.tar.gz
dracut-19bab59c48ba6edbdf9d6d9f339baef250bdd4a6.tar.bz2
dracut-19bab59c48ba6edbdf9d6d9f339baef250bdd4a6.zip
dracut.sh: reverting return value change
reverting _get_fs_type() return values of patch c8d685c9d3860e49f39a9c85ffebbb4c4fec341f
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 cfd10a14..23ffaa4b 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -766,18 +766,18 @@ if [[ $hostonly ]]; then
fi
_get_fs_type() (
- [[ $1 ]] || return 1
+ [[ $1 ]] || return
if [[ -b $1 ]] && get_fs_env $1; then
echo "$(readlink -f $1)|$ID_FS_TYPE"
- return 0
+ return 1
fi
if [[ -b /dev/block/$1 ]] && get_fs_env /dev/block/$1; then
echo "$(readlink -f /dev/block/$1)|$ID_FS_TYPE"
- return 0
+ return 1
fi
if fstype=$(find_dev_fstype $1); then
echo "$1|$fstype"
- return 0
+ return 1
fi
return 1
)