projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc22788
)
dracut-functions.sh:inst_library(): readlink source dir first
author
Harald Hoyer
<harald@redhat.com>
Wed, 22 Feb 2012 12:06:05 +0000
(13:06 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 22 Feb 2012 15:13:20 +0000
(16:13 +0100)
read link of the source dir, before convert_abs_to_rel()
dracut-functions.sh
patch
|
blob
|
history
diff --git
a/dracut-functions.sh
b/dracut-functions.sh
index
9c040a7
..
3f3667f
100755
(executable)
--- a/
dracut-functions.sh
+++ b/
dracut-functions.sh
@@
-456,6
+456,7
@@
inst_library() {
_reallib=$(readlink -f "$_src")
inst_simple "$_reallib" "$_reallib"
inst_dir "${_dest%/*}"
+ [[ -d "${_dest%/*}" ]] && _dest=$(readlink -f "${_dest%/*}")/${_dest##*/}
ln -sfn $(convert_abs_rel "${_dest}" "${_reallib}") "${initdir}/${_dest}"
else
inst_simple "$_src" "$_dest"