use 40nfsroot instead of 95NFS

master
Harald Hoyer 2009-05-25 15:28:56 +02:00
parent 9223814d59
commit 0e14fae0fe
2 changed files with 0 additions and 43 deletions

View File

@ -1,4 +0,0 @@
#!/bin/sh
inst mount.nfs
inst_hook pre-mount 99 "$moddir/nfs-parse-root-opts.sh"
instmods nfs

View File

@ -1,39 +0,0 @@
#!/bin/sh

# exit if rootfstype is set and not nfs
if [ -z "$fstype" -o "$fstype" = "nfs" ]; then
if [ "$root" = "dhcp" ]; then
for dev in /net.*.dhcpopts; do
if [ -f "$dev" ]; then
. "$dev"
[ -n "$new_root_path" ] && nfsroot="$new_root_path"
if [ ! -s /.resume -a -n "$nfsroot" ]; then
if [ "${nfsroot#nfs://}" != "$nfsroot" ]; then
nfsroot="${nfsroot#nfs://}"
nfsroot="${nfsroot/\//:/}"
fi
break
fi
fi
done
elif [ "${root#/dev/}" = "$root" -a "${root#*:/}" != "$root" ]; then
nfsroot="$root"
fi

# let user force override nfsroot
nfsroot_cmdl=$(getarg 'nfsroot=')
[ -n "$nfsroot_cmdl" ] && nfsroot="$nfsroot_cmdl"

if [ -n "$nfsroot" ]; then
root="$nfsroot"
fstype="-t nfs"
if rflags="$(getarg rootflags=)"; then
getarg rw && rflags="${rflags},rw" || rflags="${rflags},ro"
else
getarg rw && rflags=rw || rflags=ro
fi

rflags="nolock,$rflags"
fi
fi