|
In a nutshell here it is!
First setup the NFS export on the server... My /etc/exports file
/home/julie/intimate 192.168.0.1(rw) 192.168.0.100(rw,no_root_squash)
The no_root_squash is important so that familar can modify the file system (and you can install more files with ipkg).
put this in /etc/fstab
192.168.0.1:/home/julie/intimate /mnt/root nfs rw 0 0
Then I setup the following in /etc/pcmcia/network.opts This sets up the ethernet and mounts the nfs partition and does the pivot_root then runs the linuxrc on the new partition.
case "$ADDRESS" in
*,*,*,*)
INFO="Sample private network setup"
# Transceiver selection, for some cards -- see 'man ifport'
IF_PORT=""
# Use BOOTP (via /sbin/bootpc, or /sbin/pump)? [y/n]
BOOTP="n"
# Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
DHCP="n"
# If you need to explicitly specify a hostname for DHCP requests
DHCP_HOSTNAME=""
# Host's IP address, netmask, network address, broadcast address
IPADDR="192.168.0.100"
NETMASK="255.255.255.0"
NETWORK="192.168.0.0"
BROADCAST="192.168.0.255"
# Gateway address for static routing
GATEWAY="192.168.0.1"
# Things to add to /etc/resolv.conf for this interface
DOMAIN="home.magenet.com"
SEARCH=""
DNS_1="192.168.0.1"
DNS_2=""
DNS_3=""
# NFS mounts, should be listed in /etc/fstab
MOUNTS="/mnt/root"
# If you need to override the interface's MTU...
MTU=""
# For IPX interfaces, the frame type and network number
IPX_FRAME=""
IPX_NETNUM=""
# Extra stuff to do after setting up the interface
start_fn () { pivot_root /mnt/root /mnt/root/tmp/old; /linuxrc; return; }
# Extra stuff to do before shutting down the interface
stop_fn () { return; }
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac
|