From 1743a2998ad2730822a1d2a5831d7898b2b79baa Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 26 Feb 2008 18:59:35 +0000 Subject: Stuff for NFSv4 support, fix for correct configuration of vmware graphics adaptor ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1574 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/distro-specs/ubuntu/functions-default | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'initramfs/distro-specs/ubuntu/functions-default') diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default index b1f9c34a..ed973fa9 100644 --- a/initramfs/distro-specs/ubuntu/functions-default +++ b/initramfs/distro-specs/ubuntu/functions-default @@ -396,10 +396,27 @@ if [ -f /mnt/etc/init.d/autofs ] ; then -e "s,AUTOFS_OPTIONS.*,AUTOFS_OPTIONS=\"--timeout 3\"," \ -i /mnt/etc/${D_SYSCONFDIR}/autofs config_portmap - rllinker "autofs" 18 4 + rllinker "autofs" 12 4 +fi +} +# config nfsv4 +config_nfsv4 () { +if [ "x$start_nfsv4" = "xyes" ]; then + testmkd /mnt/var/lib/nfs/rpc_pipefs + testmkd /mnt/var/lib/nfs/sm + sed -e "s,NEED_IDMAPD=.*,NEED_IDMAPD=\"yes\"," \ + -e "s,NEED_GSSD=.*,NEED_GSSD=\"yes\"," \ + -i /mnt/etc/${D_SYSCONFDIR}/nfs-common + 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 +echo -e "\t# stuff needed for nfsv4\n\tmount -t rpc_pipefs rpc_pipefs \ +/var/lib/nfs/rpc_pipefs\n\tmount -t nfsd nfsd /proc/fs/nfsd" \ +>>/mnt/etc/${D_INITDIR}/boot.slx + # portmap is required for any NFS + config_portmap + rllinker "nfs-common" 10 8 fi } - # start portmapper (needed at least for nfs and nis services) config_portmap () { rllinker "portmap" 2 20 -- cgit v1.2.3-55-g7522