summaryrefslogtreecommitdiff
path: root/morphlib/exts/nfsboot.write
Commit message (Collapse)AuthorAgeFilesLines
* Use the modern way of the GPL copyright header: URL instead real addressJavier Jardón2015-03-161-3/+2
| | | | Change-Id: I992dc0c1d40f563ade56a833162d409b02be90a0
* Merge remote-tracking branch 'petefoth/petefoth/generic-params2'Sam Thursfield2014-12-181-2/+11
|\ | | | | | | | | Reviewed-By: James Thomas <james.thomas@codethink.co.uk> Reviewed-By: Sam Thursfield <sam.thursfield@codethink.co.uk>
| * Add 'do not use' warnings to nfsboot write extensionPete Fotheringham2014-12-151-2/+11
|/
* Use os.environ[] instead of os.environ.get() to read a required variableSam Thursfield2014-03-241-1/+1
|
* Make sanity checks for nfsboot deployments run earlierSam Thursfield2014-03-181-55/+4
| | | | | | | | | | | Move some code to the '.check' extension to verify that the deployment can happen *before* spending 5 minutes unpacking and configuring the rootfs. This is not a perfect solution yet because when multiple systems are being deployed in a cluster, we do not check all systems and then deploy them all. Instead, we check one, then deploy it, then check the second, etc.
* Write extensions: pass -s to rsyncRichard Maw2013-06-091-2/+2
| | | | | | | | | | | | | -s, or --protect-args prevents the file path components of destination or source paths being interpreted by the remote shell. This is for wildcards or other shell features, but it breaks when paths have whitespace. We tend to always use absolute paths, so all uses of rsync now pass -s. kvm.write needs it, since the disk can be written to a path with spaces. Nfsboot and ssh-rsync need it because version labels are used, which may have spaces, and temporary directories are used, which could have spaces in weird TMPDIR configurations.
* Change the symbolic link target and directory the default system on NFS server.Tiago Gomes2013-06-171-9/+9
| | | | | | | | | With this we'll have "default -> factory" instead of "default-run" -> "factory/run". Also change to use VERSION_LABEL instead of VERSION and "factory" instead of "version1", to be more consistent with other parts of the code.
* nfsboot deployment creates local state dirsJonathan Maw2013-05-201-0/+8
|
* Can define version by the environment variable 'VERSION'Jonathan Maw2013-05-201-1/+14
| | | | If the version already exists on the device, deployment is aborted
* Make nfsboot use the new hierarchyJonathan Maw2013-05-141-11/+74
|
* Make rsync delete files that shouldn't existJonathan Maw2013-05-141-1/+1
|
* Fix copyright yearLars Wirzenius2013-04-121-1/+1
| | | | | We only have written this this year, so it should be copyright this year only.
* Fix nfsboot write-extensionJonathan Maw2013-04-081-3/+3
| | | | Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
* Add nfsboot write extensionJonathan Maw2013-04-051-0/+161
The 'location' command-line argument refers to the hostname of the 'nfsboot server', a baserock system that has an nfs server, the directory '/srv/nfsboot/nfs', and a tftp server that hosts files from the directory '/srv/nfsboot/tftp'. The write extension will read the hostname of the target system and copy its root filesystem to /srv/nfsboot/nfs/<hostname> and its kernel to /srv/nfsboot/tftp/<hostname>. It will then configure the nfs server to export that nfs root.