dracut-functions.sh:inst_simple(): no inst_dir if dir exists

master
Harald Hoyer 2012-02-22 13:05:23 +01:00
parent 6d2a7942aa
commit cc227886c6
1 changed files with 2 additions and 2 deletions

View File

@ -405,8 +405,8 @@ inst_simple() {
local _src=$1 target="${2:-$1}"
if ! [[ -d ${initdir}/$target ]]; then
[[ -e ${initdir}/$target ]] && return 0
[[ -h ${initdir}/$target ]] && return 0
inst_dir "${target%/*}"
[[ -L ${initdir}/$target ]] && return 0
[[ -d "${initdir}/${target%/*}" ]] || inst_dir "${target%/*}"
fi
# install checksum files also
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then