Is it *supposed* to NOT startup automatically out of the box?
Looks like there are some emails on this list about there being only
stubs to support LVM, etc. I found some startup functions in
"rcscripts/addons", but nothing to actually call them at startup? There
is some stuff in conf.d/volumes which suggests that there is support for
changing the scan order, but again, couldn't spot anything which used it?
I simply copied /etc/init.d/device-mapper and tweaked it as shown below
and now LVM starts up at boot for me (note that I am using it on top of
md raid1 in case that's relevant). Perhaps this could be added to the
new baselayout unless there is a better solution?
Cheers
Ed W
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
depend() {
if [ -e /lib/librc.so ]; then
# on baselayout-1 this causes
# a dependency loop with checkroot (before *)
before checkroot
fi
}
start() {
if [ ! -e /lib/librc.so ]; then
eerror "The ${SVCNAME} init script is written for
baselayout-2"
eerror "Please do not use it with baselayout-1"
return 1
fi
. /lib/rcscripts/addons/lvm-start.sh
}
stop() {
if [ ! -e /lib/librc.so ]; then
eerror "The ${SVCNAME} init script is written for
baselayout-2"
eerror "Please do not use it with baselayout-1"
return 1
fi
. /lib/rcscripts/addons/lvm-stop.sh
}
--
[EMAIL PROTECTED] mailing list