Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 217625 Details for
Bug 273138
Update OpenRC detection in existing init.d scripts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sys-fs/evms: Init script proposed fix
evms.initd-2.5.5-r9.patch (text/plain), 923 bytes, created by
Trevor Summers Smith
on 2010-01-27 18:04:38 UTC
(
hide
)
Description:
sys-fs/evms: Init script proposed fix
Filename:
MIME Type:
Creator:
Trevor Summers Smith
Created:
2010-01-27 18:04:38 UTC
Size:
923 bytes
patch
obsolete
>--- evms.initd-2.5.5-r9 2010-01-25 15:18:36.000000000 -0500 >+++ evms.initd-2.5.5-r9.new 2010-01-25 15:20:49.000000000 -0500 >@@ -3,8 +3,13 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/files/evms.initd-2.5.5-r9,v 1.2 2008/02/01 13:02:23 flameeyes Exp $ > >+# Check for OpenRC/Baselayout 2 - see bug #270646 >+is_openrc() { >+ [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ] >+} >+ > depend() { >- if [ -e /lib/librc.so ]; then >+ if is_openrc; then > # on baselayout-1 this causes > # a dependency loop with checkroot (before *) > before checkfs fsck >@@ -13,11 +18,11 @@ > } > > start() { >- if [ ! -e /lib/librc.so ]; then >+ if ! is_openrc; then > eerror "The ${SVCNAME} init script is written for baselayout-2" > eerror "Please do not use it with baselayout-1" > return 1 > fi > > start_addon evms >-} >+} >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 273138
:
217618
|
217619
|
217621
|
217622
| 217625 |
217627