summaryrefslogtreecommitdiff
path: root/morphlib/exts/nfsboot.write
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2013-04-08 16:49:57 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2013-04-08 16:49:57 +0000
commit2b7803f57ebde9c8647aeddd68d136b8c93e18d7 (patch)
tree670ccb79d1c693127c7a61e6b2e7921cd5cbc411 /morphlib/exts/nfsboot.write
parentba5edf9a0a5d4917d2f97a8421b9f00ec3f75576 (diff)
downloadmorph-2b7803f57ebde9c8647aeddd68d136b8c93e18d7.tar.gz
Fix nfsboot write-extension
Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
Diffstat (limited to 'morphlib/exts/nfsboot.write')
-rwxr-xr-xmorphlib/exts/nfsboot.write6
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/exts/nfsboot.write b/morphlib/exts/nfsboot.write
index 60b4d00d..293b1acf 100755
--- a/morphlib/exts/nfsboot.write
+++ b/morphlib/exts/nfsboot.write
@@ -111,8 +111,8 @@ class NFSBootWriteExtension(morphlib.writeexts.WriteExtension):
exports_string = '%s %s(%s)\n' % (rootfs_dest, ip_mask, options)
exports_append_sh = '''\
set -eu
-target = "$1"
-temp = $(mktemp)
+target="$1"
+temp=$(mktemp)
cat "$target" > "$temp"
cat >> "$temp"
mv "$temp" "$target"
@@ -122,7 +122,7 @@ mv "$temp" "$target"
['sh', '-c', exports_append_sh, '--', exports_path],
feed_stdin=exports_string)
cliapp.ssh_runcmd(
- 'root@%s' % location, ['systemctl', 'reload',
+ 'root@%s' % location, ['systemctl', 'restart',
'nfs-server.service'])
def test_good_server(self, server):