diff options
-rwxr-xr-x | dracut-functions | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dracut-functions b/dracut-functions index 8a1f55fc..7c41fe75 100755 --- a/dracut-functions +++ b/dracut-functions @@ -379,7 +379,8 @@ inst_symlink() { [[ -L $target ]] && return 0 realsrc=$(readlink -f "$src") [[ $realsrc = ${realsrc##*/} ]] && realsrc=${src%/*}/$realsrc - inst "$realsrc" && ln -s "$realsrc" "$target" + inst "$realsrc" && mkdir -p "${target%/*}" && \ + ln -s "$realsrc" "$target" } # find a udev rule in the usual places. |