dracut-functions.sh:inst_simple(): no inst_dir if dir exists
parent
6d2a7942aa
commit
cc227886c6
|
@ -405,8 +405,8 @@ inst_simple() {
|
||||||
local _src=$1 target="${2:-$1}"
|
local _src=$1 target="${2:-$1}"
|
||||||
if ! [[ -d ${initdir}/$target ]]; then
|
if ! [[ -d ${initdir}/$target ]]; then
|
||||||
[[ -e ${initdir}/$target ]] && return 0
|
[[ -e ${initdir}/$target ]] && return 0
|
||||||
[[ -h ${initdir}/$target ]] && return 0
|
[[ -L ${initdir}/$target ]] && return 0
|
||||||
inst_dir "${target%/*}"
|
[[ -d "${initdir}/${target%/*}" ]] || inst_dir "${target%/*}"
|
||||||
fi
|
fi
|
||||||
# install checksum files also
|
# install checksum files also
|
||||||
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
|
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue