diff options
author | 2010-06-28 21:03:11 +0000 | |
---|---|---|
committer | 2010-06-28 21:03:11 +0000 | |
commit | 1a817bd894cbfa48a47aa1ff74d9f66042fd86cd (patch) | |
tree | 0e28b598fc09767e6ee012a9e9767f11c982b376 /net-fs/nfs-utils/files | |
parent | Fix gssapi dependencies. (diff) | |
download | gentoo-2-1a817bd894cbfa48a47aa1ff74d9f66042fd86cd.tar.gz gentoo-2-1a817bd894cbfa48a47aa1ff74d9f66042fd86cd.tar.bz2 gentoo-2-1a817bd894cbfa48a47aa1ff74d9f66042fd86cd.zip |
Fix idmapd/gssd dep calculation with nfs mounts #324725 by Михаил.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-fs/nfs-utils/files')
-rwxr-xr-x | net-fs/nfs-utils/files/nfsmount.initd | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/net-fs/nfs-utils/files/nfsmount.initd b/net-fs/nfs-utils/files/nfsmount.initd index 9ae2c520d226..62bf0284b714 100755 --- a/net-fs/nfs-utils/files/nfsmount.initd +++ b/net-fs/nfs-utils/files/nfsmount.initd @@ -1,17 +1,23 @@ #!/sbin/runscript # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.13 2009/01/31 22:15:02 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.14 2010/06/28 21:03:11 vapier Exp $ [ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs depend() { local myneed="" if [ -e /etc/fstab ] ; then - awk '!/^[[:space:]]*#/ && $3 == "nfs4" { exit ($4 ~ /sec=krb/ ? 10 : 20) }' /etc/fstab - local ret=$? - [ ${ret} -eq 10 ] && myneed="${myneed} rpc.gssd" - [ ${ret} -eq 20 ] && myneed="${myneed} rpc.idmapd" + myneed="${myneed} $( + awk '!/^[[:space:]]*#/ && ($3 == "nfs" || $3 == "nfs4") { + if ($3 == "nfs4") + idmapd = "rpc.idmapd" + if ($4 ~ /sec=(krb|spkm)/) + gssd = "rpc.gssd" + } + END { print idmapd " " gssd } + ' /etc/fstab + )" fi config /etc/fstab need net portmap rpc.statd ${myneed} |