From: Harald Hoyer Date: Mon, 25 Jul 2011 08:55:19 +0000 (+0200) Subject: dracut-functions: resolve relative path and recursively install destination X-Git-Tag: 012~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b07f4e83fe514dbbe66869337d3d0cf8610240b;p=platform%2Fupstream%2Fdracut.git dracut-functions: resolve relative path and recursively install destination --- diff --git a/dracut-functions b/dracut-functions index 2a45419..a261ddd 100755 --- a/dracut-functions +++ b/dracut-functions @@ -277,12 +277,10 @@ inst_dir() { if [[ -L $_file ]]; then # create link as the original local target=$(readlink "$_file") + # resolve relative path and recursively install destination + [[ $target == ${target#/} ]] && target="$(dirname "$_file")/$target" inst_dir "$target" inst_symlink "$_file" - #ln -sfn "$target" "${initdir}$_file" || return 1 - # resolve relative path and recursively install destination - #[[ $target == ${target#/} ]] && target="$(dirname "$_file")/$target" - #inst_dir "$target" else [[ -h ${initdir}$_file ]] && _file=$(readlink "${initdir}$_file") # create directory