From e0e1fcc938b3684ced0cd71a0f529dbf031eb197 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 21 Feb 2007 21:09:05 +0000 Subject: Started NFSv4 integration (only sensible for newer distros, e.g. SuSE 10.), removed AFS from SuSE10.2 (deprecated), fixed init for (nfsroot= deprecated too) and fixed functions for @@@serverip@@@ (dsuchod if --username dsuchod does not work) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@709 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/distro-specs/suse/functions-10.2 | 33 +++++++++++------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to 'initramfs/distro-specs/suse/functions-10.2') diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2 index 0ec98e85..232edd57 100644 --- a/initramfs/distro-specs/suse/functions-10.2 +++ b/initramfs/distro-specs/suse/functions-10.2 @@ -112,27 +112,18 @@ if [ "x$start_dreshal" = "xyes" ]; then fi } -# afs client -# configure afs client -config_afs () { -if [ "x$start_afs" = "xyes" ] ; then - if [ -f /mnt/etc/init.d/openafs-client ] ; then - test -d /mnt/afs || error "${df_errafsd}" - testmkd /mnt/var/cache/openafs - rllinker "openafs-client" "15" "06" - # echo -e "# /etc/sysconfig/afs-client - file generated by \ - #$0:\n#\t$date\n" >/etc/sysconfig/afs-client.new; - # sed -e "s,THIS_CELL_SERVER.*,THIS_CELL_SERVER=\"$cell_serv\"," \ - # -e "s,PREFERREDSERVERS.*,PREFERREDSERVERS=\"$cell_serv\"," \ - # -e "s,THIS_CELL.*,THIS_CELL=\"$this_cell\"," \ - # -e "s,MEMCACHE.*,MEMCACHE=\"yes\"," \ - # /etc/sysconfig/afs-client >> \ - # /etc/sysconfig/afs-client.new - # mv /etc/sysconfig/afs-client.new /etc/sysconfig/afs-client - else - error "${df_errafsn}" nonfatal - fi -fi +# config nfsv4 +config_nfsv4 () { +testmkd /mnt/var/lib/nfs/rpc_pipefs +sed -e "s,NFS_SECURITY_GSS=.*,NFS_SECURITY_GSS=\"yes\"," \ + -e "s,NFS4_SUPPORT=.*,NFS4_SUPPORT=\"yes\"," \ + -i /mnt/etc/sysconfig/nfs +echo -e "rpc_pipefs\t/var/lib/nfs/rpc_pipefs rpc_pipefs defaults\t 0 0\n\ +nfsd\t\t/proc/fs/nfsd\tnfsd\t\tdefaults\t 0 0" >>/tmp/fstab +# portmap is required +config_portmap +rllinker "idmapd" "14" "08" +rllinker "gssd" "15" "07" } # prepare virtual machine environment (vmware, vmplayer) -- cgit v1.2.3-55-g7522