From: Andy Witter Date: Tue, 8 Jan 2019 21:18:09 +0000 (-0500) Subject: Fix NFS boot bug due to missing dep rpcbind.service to mountd.service X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=38ab4d8d7cadb58243c659a87618a48e94092d94;p=contrib%2Fpines%2Fgenasys.git Fix NFS boot bug due to missing dep rpcbind.service to mountd.service --- diff --git a/templates/setup-head.sh b/templates/setup-head.sh index f162c71..d2e9884 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -132,6 +132,9 @@ if [ -e head_file_apt.list ] $APT_TOOL update && $APT_TOOL -y install $(cat head_file_apt.list) fi +### fix NFS start bug in systemd +systemctl add-wants nfs-mountd.service rpcbind.service + ### Fix ejabberd/apparmor bug - commented out because it's not working #FixAppArmorEJabberD diff --git a/templates/setup.sh b/templates/setup.sh index 59d8771..e9d1d75 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -216,6 +216,12 @@ if [ -e tar_file_apt.list ] $APT_TOOL -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG" fi +### Fix bug in NFS that caused failure to start at boot time +if cat tar_file_apt.list | grep -q nfs +then + systemctl add-wants nfs-mountd.service rpcbind.service +fi + ### Fix ejabberd/apparmor bug - commented out because it didn't work #FixAppArmorEJabberD @@ -787,6 +793,7 @@ then fi chown -R opensrf:opensrf /storage/reports-output $APT_TOOL install nfs-kernel-server + systemctl add-wants nfs-mountd.service rpcbind.service fi ### make sure the permissions are correct.