nfs: add rd_NFS_DOMAIN parameter to set the NFSv4 domain name

https://bugzilla.redhat.com/show_bug.cgi?id=537969
master
Harald Hoyer 2009-11-26 10:38:40 +01:00
parent 48df9fcc11
commit 4073e3a325
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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} \