diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-12-18 10:39:22 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-12-18 10:39:22 +0000 |
commit | 8e319db777ccb11ae565293e5c86919192fb459b (patch) | |
tree | 02be8458d8ba31ea6a6071df279b30057f4c1fcb /morphlib/exts/nfsboot.write | |
parent | c57952ef44a0f1f161441970fcf2f27a39b0de7c (diff) | |
parent | e22bd056920d936caf66a24554e4c3e31157d13c (diff) | |
download | morph-8e319db777ccb11ae565293e5c86919192fb459b.tar.gz |
Merge remote-tracking branch 'petefoth/petefoth/generic-params2'
Reviewed-By: James Thomas <james.thomas@codethink.co.uk>
Reviewed-By: Sam Thursfield <sam.thursfield@codethink.co.uk>
Diffstat (limited to 'morphlib/exts/nfsboot.write')
-rwxr-xr-x | morphlib/exts/nfsboot.write | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/morphlib/exts/nfsboot.write b/morphlib/exts/nfsboot.write index 8d3d6df7..49d71174 100755 --- a/morphlib/exts/nfsboot.write +++ b/morphlib/exts/nfsboot.write @@ -17,6 +17,16 @@ '''A Morph deployment write extension for deploying to an nfsboot server +*** DO NOT USE *** +- This was written before 'proper' deployment mechanisms were in place +It is unlikely to work at all and will not work correctly + +Use the pxeboot write extension instead + +*** + + + An nfsboot server is defined as a baserock system that has tftp and nfs servers running, the tftp server is exporting the contents of /srv/nfsboot/tftp/ and the user has sufficient permissions to create nfs roots @@ -125,7 +135,7 @@ class NFSBootWriteExtension(morphlib.writeexts.WriteExtension): self.status(msg='Creating destination directories') try: - cliapp.ssh_runcmd('root@%s' % location, + cliapp.ssh_runcmd('root@%s' % location, ['mkdir', '-p', orig_path, run_path]) except cliapp.AppException: raise cliapp.AppException('Could not create dirs %s and %s on %s' @@ -191,4 +201,3 @@ mv "$temp" "$target" NFSBootWriteExtension().run() - |