# HG changeset patch # User Hans-G?nter Theisgen # Date 1680774757 -3600 # Node ID 23441bc814aebf3ccc240b49179b28554c76f479 # Parent f40d97a52c429e02e65e409a3f239a4854001c86 nfs-utils: make nfsd work on first start too diff -r f40d97a52c42 -r 23441bc814ae nfs-utils/stuff/etc/init.d/nfsd --- a/nfs-utils/stuff/etc/init.d/nfsd Mon Apr 03 16:35:42 2023 +0000 +++ b/nfs-utils/stuff/etc/init.d/nfsd Thu Apr 06 10:52:37 2023 +0100 @@ -24,6 +24,11 @@ exit 1 fi action 'Starting %s: %s...' "$DESC" $NAME + # Make sure module nfsd is loaded: + modprobe nfsd + # Mount nfsd when not already mounted: + mount|grep -q /proc/fs/nfsd || + mount -t nfsd nfsd /proc/fs/nfsd # Start rpcbind when not already running: [ -n "$(pidof rpcbind)" ] || rpcbind # Export directories specified in /etc/exports: