dracut.sh:_get_fs_type() readlink devices to avoid dups

master
Harald Hoyer 2012-03-29 15:14:26 +02:00
parent a5cde2dd18
commit 31b6f4a3ae
1 changed files with 2 additions and 2 deletions

View File

@ -603,11 +603,11 @@ fi
_get_fs_type() (
[[ $1 ]] || return
if [[ -b $1 ]] && get_fs_env $1; then
echo "$1|$ID_FS_TYPE"
echo "$(readlink -f $1)|$ID_FS_TYPE"
return 1
fi
if [[ -b /dev/block/$1 ]] && get_fs_env /dev/block/$1; then
echo "/dev/block/$1|$ID_FS_TYPE"
echo "$(readlink -f /dev/block/$1)|$ID_FS_TYPE"
return 1
fi
if fstype=$(find_dev_fstype $1); then