On Sunday 09 March 2008, Dale wrote:
> If he uses LVM then he may need it.  You are right on the baselayout
> but this got installed here when I was playing around with LVM.  I
> would hate for him to be using LVM and not have this when he reboots.
>  I didn't see any mention of this in the original post.  He may not
> use LVM but if he does. . . .
>
> Also note, I have not used/installed baselayout to version 2 either
> but I still have this installed and it is needed by something else,
> that I may not need either.  I haven't went that far here.

This thread is interesting, mostly because I think I'm the only poster 
so far that thought to actually read the init script:

=================
[EMAIL PROTECTED] ~ $ cat /etc/init.d/device-mapper
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# 
$Header: 
/var/cvsroot/gentoo-x86/sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r3,v
 
1.5 2008/02/01 12:39:47 flameeyes Exp $

depend() {
        if [ -e /lib/librc.so ]; then
                # on baselayout-1 this causes
                # a dependency loop with checkroot (before *)
                after modules
                before checkfs fsck
        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

        start_addon dm
}
================

/lib/librc.so is not present under baselayout-1. So depend() evaluates 
to a null statement and start() WILL exit without running any code.

All the OP needs do is remove device-mapper from his default runlevel.


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

--
gentoo-user@lists.gentoo.org mailing list

Reply via email to