From 38ab4d8d7cadb58243c659a87618a48e94092d94 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Tue, 8 Jan 2019 16:18:09 -0500 Subject: [PATCH] Fix NFS boot bug due to missing dep rpcbind.service to mountd.service --- templates/setup-head.sh | 3 +++ templates/setup.sh | 7 +++++++ 2 files changed, 10 insertions(+) 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. -- 2.11.0