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:
7b3ff4e
)
usrmount: do not install, if /sbin/init does not live in /usr
author
Harald Hoyer
<harald@redhat.com>
Wed, 24 Jul 2013 11:41:15 +0000
(13:41 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 24 Jul 2013 11:41:57 +0000
(13:41 +0200)
modules.d/98usrmount/module-setup.sh
patch
|
blob
|
history
diff --git
a/modules.d/98usrmount/module-setup.sh
b/modules.d/98usrmount/module-setup.sh
index
5d81d15
..
a668069
100755
(executable)
--- a/
modules.d/98usrmount/module-setup.sh
+++ b/
modules.d/98usrmount/module-setup.sh
@@
-3,7
+3,10
@@
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
+ local _init
[[ $mount_needs ]] && return 1
+ _init=$(readlink -f /sbin/init)
+ [[ "$init" == "${init##/usr}" ]] && return 255
return 0
}