]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
nfs: add rd_NFS_DOMAIN parameter to set the NFSv4 domain name
authorHarald Hoyer <harald@redhat.com>
Thu, 26 Nov 2009 09:38:40 +0000 (10:38 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Nov 2009 09:38:40 +0000 (10:38 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=537969

dracut.8
modules.d/95nfs/nfsroot

index 6253ebffa890c1aab5745427f977b7d55ae07889..cb9bedd9b77a9881feb3e8de24a56144c6c57ead 100644 (file)
--- a/dracut.8
+++ b/dracut.8
@@ -231,6 +231,9 @@ options can be specified.
 \fBDeprecated!\fR kernel Documentation/filesystems/nfsroot.txt defines 
 this method.  
 This is supported by dracut but not recommended.
+.TP
+.B rd_NFS_DOMAIN=<NFSv4 domain name>
+Set the NFSv4 domain name. Will overwrite the settings in /etc/idmap.conf.
 
 .SH iSCSI
 .TP
index 2ea14865f259a2dae109ee712ff222557bae5121..4d86bc87fd84664077ae4635910329342886df82 100755 (executable)
@@ -133,7 +133,11 @@ if [ "$nfs" = "nfs4" ]; then
 
     # XXX really needed? Do we need non-root users before we start it in
     # XXX the real root image?
-    [ -z "$(pidof rpc.idmapd)" ] && rpc.idmapd
+    if nfsdomain=$(getarg rd_NFS_DOMAIN); then
+        [ -z "$(pidof rpc.idmapd)" ] && rpc.idmapd -d $nfsdomain
+    else
+        [ -z "$(pidof rpc.idmapd)" ] && rpc.idmapd
+    fi
 
     # XXX Should we loop here?
     mount -t nfs4 -o$options${nfslock+,$nfslock} \