summaryrefslogtreecommitdiff
path: root/morphlib/exts/nfsboot.write
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/exts/nfsboot.write')
-rwxr-xr-xmorphlib/exts/nfsboot.write11
1 files changed, 5 insertions, 6 deletions
diff --git a/morphlib/exts/nfsboot.write b/morphlib/exts/nfsboot.write
index 34a72972..9c049cc5 100755
--- a/morphlib/exts/nfsboot.write
+++ b/morphlib/exts/nfsboot.write
@@ -206,8 +206,7 @@ mv "$temp" "$target"
['sh', '-c', exports_append_sh, '--', exports_path],
feed_stdin=exports_string)
cliapp.ssh_runcmd(
- 'root@%s' % location, ['systemctl', 'restart',
- 'nfs-server.service'])
+ 'root@%s' % location, ['exportfs', '-a'])
def test_good_server(self, server):
# Can be ssh'ed into
@@ -222,13 +221,13 @@ mv "$temp" "$target"
cliapp.ssh_runcmd(
'root@%s' % server, ['test', '-e', '/etc/exports'])
except cliapp.AppException:
- raise cliapp.AppException('server %s is not an nfs server'
- % server)
+ raise cliapp.AppException('Server %s is not exporting any file '
+ 'systems' % server)
+
try:
cliapp.ssh_runcmd(
- 'root@%s' % server, ['systemctl', 'is-enabled',
+ 'root@%s' % server, ['systemctl', 'is-active',
'nfs-server.service'])
-
except cliapp.AppException:
raise cliapp.AppException('server %s does not control its '
'nfs server by systemd' % server)