Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: "Thomas M. Beaudry" <k8la@×××××××××.com>
Cc: Gentoo-Dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
Date: Tue, 27 Aug 2002 16:37:25
Message-Id: 1030484099.12105.169.camel@nosferatu.lan
In Reply to: Re: [gentoo-dev] baselayout 1.8.2 breaks lvm by "Thomas M. Beaudry"
1 On Tue, 2002-08-27 at 09:05, Thomas M. Beaudry wrote:
2 > I agree, I haven't seen a *nix with these in the main startup script
3 > even if the box always had, for example, RAID.
4 >
5 > I would suggest, at the minimum, if you're going to leave them in the
6 > script to surround them with an "if" statement controlled by a variable
7 > in /etc/conf.d/rc indicating whether it's installed or not.
8 >
9
10 Did you even look at the script ? I might be wrong here, but last
11 time I checked, it was not even in the "main" startup script, but in
12 /etc/init.d/checkfs. Actually, the last time I looked, our "main" one
13 was not even in /etc/init.d.
14
15 I guess you also havent looked at many Distro's startup scripts ?
16 Do yourself a favour and look at /etc/rc.sysinit of mandrake or redhat.
17
18 ------------------------------snip----------------------------------
19 azarah@nosferatu etc $ grep lvm rc.sysinit
20 if [ -x /sbin/vgchange -a -f /etc/lvmtab ]; then
21 # which can't be done before "vgscan" (which writes to
22 /etc/lvmtab)
23 azarah@nosferatu etc $ grep raid rc.sysinit
24 # Add raid devices
25 if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
26 for i in `grep "^[^*]*raiddev" /etc/raidtab | awk '{print $2}'`
27 # If not, try raidstart...if that fails then
28 # fall back to raidadd, raidrun. If that
29 if [ $RESULT -gt 0 -a -x /sbin/raidstart ]; then
30 /sbin/raidstart $i
31 if [ $RESULT -gt 0 -a -x /sbin/raid0run ]; then
32 /sbin/raid0run $i
33 if [ $RESULT -gt 0 -a -x /sbin/raidadd -a -x /sbin/raidrun ]; then
34 /sbin/raidadd $i
35 /sbin/raidrun $i
36 azarah@nosferatu etc $
37 -------------------------------------------------------------------
38
39 Anyhow, I am sure we all have something better to worry about.
40
41
42 --
43
44 Martin Schlemmer
45 Gentoo Linux Developer, Desktop Team Developer
46 Cape Town, South Africa