Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21524 - EVMS init script lacks in dependencies.
Summary: EVMS init script lacks in dependencies.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-23 01:43 UTC by Aurelien Requiem
Modified: 2004-06-13 13:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Requiem 2003-05-23 01:43:04 UTC
Both evms and evms2 init script lacks in dependencies.
If you have to mount volume in your fstab, it will fails.
I think you should add the following to your init scripts.

depend() {
        before localmount
}


Reproducible: Always
Steps to Reproduce:
1. rc-update add evms boot
2. create a volume
3. put it in your fstab
4. reboot

Actual Results:  
the mount has failed

Expected Results:  
The mount should succeed.

Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Celeron (Mendocino)
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo 
http://mirrors.sunsite.dk/gentoo http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/local/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm arts avi cups encode imlib gnome libg++ mikmod mmx motif 
mpeg ncurses nls oggvorbis opengl png quicktime sdl svga truetype xmms xv zlib 
slang readline gpm tcpd perl python -X -gtk -kde -alsa -qt -flash -java -xml -
xml2 -pdflib -snmp -odbc -berkdb -freetds -firebird -spell -pam -gdbm -curl -
postgres -libwww -gif crypt tiff gd ldap mysql imap jpeg ssl evms2 aavm"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://gentoo.menfin.net/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Tim Dodge 2003-07-02 05:04:49 UTC
This was working fine for me until I upgraded to sys-apps/baselayout-1.8.6.8-r1.

Now localmount always gets called first. I've even put "need evms" in localmount's depend() function with no success. Localmount is still being run before evms.
Comment 2 John Huttley 2003-07-04 02:35:36 UTC
The best way to fix this is to patch /etc/init.s/checkfs and /etc/init/d/halt.sh
These scripts both cope with normal LVM. The evms service is superfluous.

patch for checkfs:

--- checkfs.org	2003-07-04 21:02:23.000000000 +1200
+++ checkfs	2003-07-04 21:35:38.000000000 +1200
@@ -28,6 +28,10 @@
 			/sbin/vgchange -a y >/dev/null
 		fi
 		eend $? "Failed to setup the LVM"
+        elif [ -x /sbin/evms_activate ]
+        then
+		ebegin "Setting up evms"
+		/sbin/evms_activate -q
 	fi
 
 	# Start software raid.



The patch for halt.sh is similar

--John
Comment 3 Mike Javorski 2003-07-07 12:20:52 UTC
the reason that adding "before localmount" to the evms2 init script doesn't fix the problem is that localmount is set to "before *" which supercede the "before localmount" in evms. This is annoying but acceptable (prevents dependency problems) for the current implementation of dependency tracking.

Please see bug #24064 for an appropriate patch for checkfs (to implement EVMS startup). It hopefully will be included in a future version of baselayout.


And a small correction...
There should be nothing added to the halt.sh script.. evms_deactivate is for debugging only and has been removed from the current EVMS release.

- Mike
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-13 13:21:04 UTC
I'm taking evms stuff
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-13 13:29:38 UTC
It actually needs to be before checkfs which is before localmount.  I fixed this a couple days ago. Thanks.