| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| |
| |
| |
| | |
git://git.baserock.org/baserock/baserock/morph
Reviewed by Richard Maw, Lars Wirzenis, Daniel Silverstone and Jonathan Maw.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The VirtualBox deployment write extension will configure networking in
the following manner:
- One host-only network interface will be used to group the virtual
machines together (and to give access between the host and the virtual
machines). It will be bound to eth0 of the virtual machine.
- One NAT (or Bridge) network interface will be used to allow the
virtual machines access to the wider network. This will be bound to eth1
of the virtual machine.
Now deployment to virtual box will require that both HOST_IPADDR and NETMASK
environment variables be set, and also configuration for eth0 and eth1 is
expected in the NETWORK_CONFIG environment variable.
This commit also replaces some run_cmd with ssh_runcmd.
|
|\ \
| | |
| | |
| | |
| | |
| | | |
git://git.baserock.org/baserock/baserock/morph
Reviewed by Richard Maw and Lars Wirzenius
|
| |/
| |
| |
| |
| |
| |
| | |
deployments
Also Change them to use the "default" symlink in the extlinux.conf they
create, instead of hardcoding the current system version name
|
|/
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is used to perform upgrades on running baserock systems. It requires rsync
on the target system
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
morphlib/exts/nfsboot.write
Sorted out the conflict, and tested by deploying first devel
and then base to the same rawdisk, and things worked.
|
| | |
|
| |
| |
| |
| |
| | |
We perform this by cloning an existing orig directory and then updating the
contents using rsync
|
| | |
|
|/
|
|
| |
If the version already exists on the device, deployment is aborted
|
|
|
|
|
|
| |
Simple networking configuration extension, taking NETWORK_CONFIG
from the environment and writing /etc/network/interfaces out during
deployment configuration.
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
baserock/tiagogomes/drop-config
|
| |\
| | |
| | |
| | |
| | |
| | | |
git://git.baserock.org/baserock/baserock/morph
Reviewed-by: Jonathan Maw on IRC.
|
| | |
| | |
| | |
| | |
| | |
| | | |
If AUTOSTART is 'yes' then the VM will be started once it is
created. If it is 'no' or undefined, then it will need to be manually
started. If it is any other value, then an exception is raised.
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| | |
- Don't fail if the root/.ssh directory does not exist when adding entries to the known_hosts file
- Use shutil.copyfilobj to copy the file contents
- Use the python with statatement when opening files
|
|\ \
| |/
|/|
| |
| |
| | |
git://git.baserock.org/baserock/baserock/morph
A column width error was fixed up in the merge.
|
|/ |
|
|
|
|
|
|
| |
This tiny typo unfortunately makes root unable to use ssh, since ssh
refuses to authenticate if your private key is globally readable, and
the typo causes the private key to be given the public key's permissions.
|
|
|
|
|
| |
We only have written this this year, so it should be copyright
this year only.
|
|\ |
|
| |
| |
| |
| | |
Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This configuration-extension removes every network interface but the
loopback interface from /etc/network/interfaces and stops /etc/fstab
from mounting "/".
It will only do this if the environment variable NFSBOOT_CONFIGURE is
set on the `morph deploy` command-line.
|
| |
| |
| |
| |
| |
| | |
Fixed error in function copy_rename_key that tried to place key in non
existent directory. Required use of os.path.basename to leave name of
key and remove rest of path.
|
|/
|
|
|
| |
Added a configuration extension that copies SSH keys across to the
deployed system.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
It was missing an import for sys.
It did not have the size of the disk either, this has also been fixed
|
|
|
|
| |
Suggested-By: Richard Maw
|
|
|
|
| |
Reported-By: Richard Maw
|
|
|
|
|
|
|
|
|
|
| |
This allows code sharing amongst all the places that create a
system in a raw disk image. This also adds the creation of
a factory-run subvolume, and fixes error messages for errors
that happen during a disk image creation.
Suggested-By: Richard Maw
Suggested-By: Sam Thursfield
|
|
|
|
| |
Suggested-By: Richard Maw
|
| |
|
| |
|