usrmount: do not install, if /sbin/init does not live in /usr
parent
7b3ff4e055
commit
1a1c80febe
|
|
@ -3,7 +3,10 @@
|
||||||
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
local _init
|
||||||
[[ $mount_needs ]] && return 1
|
[[ $mount_needs ]] && return 1
|
||||||
|
_init=$(readlink -f /sbin/init)
|
||||||
|
[[ "$init" == "${init##/usr}" ]] && return 255
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue