]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:inst_simple(): no inst_dir if dir exists
authorHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 12:05:23 +0000 (13:05 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 15:13:20 +0000 (16:13 +0100)
dracut-functions.sh

index 3dfb11614464adb115c9ecc482b69c7489b74229..9c040a758463e62d9ee5caea9746954ec708ae6f 100755 (executable)
@@ -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