]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
use 40nfsroot instead of 95NFS
authorHarald Hoyer <harald@redhat.com>
Mon, 25 May 2009 13:28:56 +0000 (15:28 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 25 May 2009 13:32:30 +0000 (15:32 +0200)
modules.d/95NFS/install [deleted file]
modules.d/95NFS/nfs-parse-root-opts.sh [deleted file]

diff --git a/modules.d/95NFS/install b/modules.d/95NFS/install
deleted file mode 100755 (executable)
index effdf2f..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-inst mount.nfs
-inst_hook pre-mount 99 "$moddir/nfs-parse-root-opts.sh"
-instmods nfs
diff --git a/modules.d/95NFS/nfs-parse-root-opts.sh b/modules.d/95NFS/nfs-parse-root-opts.sh
deleted file mode 100755 (executable)
index 06228a8..0000000
+++ /dev/null
@@ -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