blob: 10f8f1d236a224c2399316e39ff7169511c0a8a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# NFS filesystem mounting -*- shell-script -*-
# FIXME This needs error checking
# Paramter: Where the root should be mounted
mountroot ()
{
log_begin_msg "Running /scripts/nfs-top"
run_scripts /scripts/nfs-top
log_end_msg
modprobe nfs
# For DHCP
modprobe af_packet
ipconfig ${DEVICE}
. /tmp/net-${DEVICE}.conf
if [ "x${NFSROOT}" = "xauto" ]; then
NFSROOT=${ROOTSERVER}:${ROOTPATH}
fi
log_begin_msg "Running /scripts/nfs-premount"
run_scripts /scripts/nfs-premount
log_end_msg
if [ ${readonly} = y ]; then
roflag="-o ro"
else
roflag="-o rw"
fi
sleep 3
nfsmount ${roflag} ${NFSROOT} ${rootmnt}
log_begin_msg "Running /scripts/nfs-bottom"
run_scripts /scripts/nfs-bottom
log_end_msg
}
|