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:
2e0c003
)
dracut-functions: fix inst_dir() for non-absolute dirs
author
Harald Hoyer
<harald@redhat.com>
Tue, 23 Aug 2011 10:50:03 +0000
(12:50 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 23 Aug 2011 10:50:03 +0000
(12:50 +0200)
dracut-functions
patch
|
blob
|
history
diff --git
a/dracut-functions
b/dracut-functions
index
43a6843
..
a3340e4
100755
(executable)
--- a/
dracut-functions
+++ b/
dracut-functions
@@
-279,7
+279,7
@@
inst_dir() {
[[ -e ${initdir}$_dir ]] && return 0
_part=${_dir%/*}
- while ! [[ -e "${initdir}${_part}" ]]; do
+ while
[[ "$_part" != "${_part%/*}" ]] &&
! [[ -e "${initdir}${_part}" ]]; do
_dir="$_part $_dir"
_part=${_part%/*}
done