dracut-functions: fix inst_dir() for non-absolute dirs

master
Harald Hoyer 2011-08-23 12:50:03 +02:00
parent 2e0c003435
commit 8cf621ffd9
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ inst_dir() {
[[ -e ${initdir}$_dir ]] && return 0

_part=${_dir%/*}
while ! [[ -e "${initdir}${_part}" ]]; do
while [[ "$_part" != "${_part%/*}" ]] && ! [[ -e "${initdir}${_part}" ]]; do
_dir="$_part $_dir"
_part=${_part%/*}
done