*) return;;
esac
-# Ugly: root=nfs[4] requires dhcp root-path
-if [ "$root" = "nfs" ] || [ "$root" = "nfs4" ] ; then
- # No need to check if the file exists. ip cmdline parser takes care of this
- . /tmp/dhclient.$netif.dhcpopts
- [ -z "$new_root_path" ] && die "Required dhcp option root-path not available"
- root=$root:$new_root_path
-fi
-
root_to_var $root
#Load other data that might provide info
client_test "NFSv3 netroot=dhcp DHCP path only" 52:54:00:12:34:00 \
"netroot=dhcp" 192.168.50.1 -wsize=4096 || return 1
- client_test "NFSv3 root=nfs DHCP path only" 52:54:00:12:34:00 \
- "root=nfs" 192.168.50.1 -wsize=4096 || return 1
-
client_test "NFSv3 root=/dev/nfs DHCP path only" 52:54:00:12:34:00 \
"root=/dev/nfs" 192.168.50.1 -wsize=4096 || return 1
client_test "NFSv3 root=dhcp DHCP IP:path" 52:54:00:12:34:01 \
"root=dhcp" 192.168.50.2 -wsize=4096 || return 1
- client_test "NFSv3 root=nfs DHCP IP:path" 52:54:00:12:34:01 \
- "root=nfs" 192.168.50.2 -wsize=4096 || return 1
-
client_test "NFSv3 root=/dev/nfs DHCP IP:path" 52:54:00:12:34:01 \
"root=/dev/nfs" 192.168.50.2 -wsize=4096 || return 1
# server, so put these later in the list to avoid a pause when doing
# switch_root
- client_test "NFSv4 netroot=nfs4 DHCP path only" 52:54:00:12:34:80 \
- "netroot=nfs4" 192.168.50.1 -wsize=4096 || return 1
-
- client_test "NFSv4 root=nfs4 DHCP path only" 52:54:00:12:34:80 \
- "root=nfs4" 192.168.50.1 -wsize=4096 || return 1
-
- client_test "NFSv4 netroot=nfs4 DHCP IP:path" 52:54:00:12:34:81 \
- "netroot=nfs4" 192.168.50.2 -wsize=4096 || return 1
-
- client_test "NFSv4 root=nfs4 DHCP IP:path" 52:54:00:12:34:81 \
- "root=nfs4" 192.168.50.2 -wsize=4096 || return 1
-
client_test "NFSv4 netroot=dhcp DHCP proto:IP:path" 52:54:00:12:34:82 \
"netroot=dhcp" 192.168.50.3 -wsize=4096 || return 1
"root=nfs4:192.168.50.1:/client" 192.168.50.1 \
-wsize=4096 || return 1
- client_test "NFSv4 netroot=nfs4" 52:54:00:12:34:84 \
- "netroot=nfs4" 192.168.50.1 -wsize=4096 || return 1
-
- client_test "NFSv4 root=nfs4" 52:54:00:12:34:84 \
- "root=nfs4" 192.168.50.1 -wsize=4096 || return 1
-
- client_test "NFSv4 root=nfs4 DHCP path,options" \
- 52:54:00:12:34:85 "root=nfs4" 192.168.50.1 wsize=4096 || return 1
-
- client_test "NFSv4 root=nfs4 DHCP IP:path,options" \
- 52:54:00:12:34:86 "root=nfs4" 192.168.50.2 wsize=4096 || return 1
-
client_test "NFSv4 root=dhcp DHCP proto:IP:path,options" \
52:54:00:12:34:87 "root=dhcp" 192.168.50.3 wsize=4096 || return 1
}