Gentoo Archives: gentoo-user

From: Claudinei Matos <claudineimatos@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] nfs and samba doesn't mount at boot
Date: Tue, 19 Sep 2006 00:12:24
Message-Id: fd8aab850609181707i4545ca76h5be14e005e5d9551@mail.gmail.com
1 It looks like an dependency problem on your init scripts.
2 Did you tried to run "depscan.sh"? it should fix init.d dependencies.
3
4 Claudinei Matos
5
6 On 9/18/06, Pawel K <pawlaczus@×××××.com> wrote:
7 >
8 > > Run /etc/init.d/net.eth0 and inspect the output
9 > > closely,
10 >
11 > Thanx for an answer.
12 > Yes I can start /et/init.d/net.eth0 manually. It is
13 > also started at boot correctly.
14 > It looks like nfsmount is started before net.eth0 at
15 > boot:
16 >
17 > INIT: Entering runlevel: 3
18 > * Starting metalog ...
19 > [ ok ]
20 > * Starting gpm ...
21 > [ ok ]
22 > * Starting portmap ...
23 > [ ok ]
24 > * ERROR: cannot start nfsmount as net.eth0 could not
25 > start
26 > * ERROR: cannot start netmount as net.eth0 could not
27 > start
28 > * Setting up xdm ...
29 > [ ok ]
30 > * Starting eth0
31 > * Configuration not set for eth0 - assuming DHCP
32 > * Bringing up eth0
33 > * dhcp
34 > * Running dhcpcd ...
35 > [ ok ]
36 > * eth0 received address 172.18.129.98/22
37 >
38 > The following sequence of commands works fine:
39 > /etc/init.d/net.eth0 stop
40 > /etc/init.d/nfsmount start
41 >
42 > nfsmount also brings up eth0 interface.
43 > No error messages are displayed.
44 > The depend() of /etc/init.d/nfsmount looks like:
45 >
46 > depend() {
47 > need net portmap
48 > use ypbind
49 > }
50 >
51 > and net.eth0:
52 >
53 > depend() {
54 > need localmount
55 > after bootmisc hostname
56 > use isapnp isdn pcmcia usb wlan
57 >
58 > # Load any custom depend functions for the
59 > given interface
60 > # For example, br0 may need eth0 and eth1
61 > local iface="${SVCNAME#*.}"
62 > [[ $(type -t "depend_${iface}") == "function"
63 > ]] && depend_${iface}
64 > [[ ${iface} != "lo" && ${iface} != "lo0" ]] &&
65 > after net.lo net.lo0
66 >
67 > return 0
68 > }
69 >
70 > Do You have any idea what can be wrong ?
71 > thank You for help
72 >
73 >