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:
6600691
)
busybox/module-setup.sh: do not create absolute symlinks
author
Harald Hoyer
<harald@redhat.com>
Wed, 6 Apr 2011 07:57:59 +0000
(09:57 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 8 Apr 2011 08:39:57 +0000
(10:39 +0200)
modules.d/05busybox/module-setup.sh
patch
|
blob
|
history
diff --git
a/modules.d/05busybox/module-setup.sh
b/modules.d/05busybox/module-setup.sh
index
031b335
..
c64ac4a
100755
(executable)
--- a/
modules.d/05busybox/module-setup.sh
+++ b/
modules.d/05busybox/module-setup.sh
@@
-24,7
+24,11
@@
install() {
for i in $progs; do
path=$(find_binary "$i")
- ln -s /sbin/busybox "$initdir/$path"
+ if [[ $path != ${path#/usr} ]]; then
+ ln -s ../../sbin/busybox "$initdir/$path"
+ else
+ ln -s ../sbin/busybox "$initdir/$path"
+ fi
done
}