| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
-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.
|
|\ \
| | |
| | |
| | | |
Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
|
|/ / |
|
| | |
|
| |
| |
| |
| | |
I don't know how that one slipped through.
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Verify if are using and older extlinux configuration and upgrade it
if the case, by checking if the "default" symbolic link exists on the target.
Note that with the symbolic link we don't need to update extlinux configuration after an upgrade
|
| | |
| | |
| | |
| | | |
systems.
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
git://git.baserock.org/baserock/baserock/morph
There were no major objections to the design and it has been sitting in
the merge queue long enough that it was decided to merge it.
It has been reviewed and lightly tested by Jonathan Maw.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This removes staging areas and extracted chunks from --tempdir.
Then asks the local artifact cache what artifacts it
has and how old they are, removing all sources older than
--cachedir-artifact-delete-older-than, and may delete other sources that
are younger than --cachedir-artifact-keep-younger-than if it still needs
to make space.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | | |
git://git.baserock.org/baserock/baserock/morph
Reviewed by Lars Wirzenius
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
|/|
| | |
Reviewed-by: Daniel Silverstone on IRC
|
|/
|
|
|
| |
It was misisng one case, making the test suite fail on computers
with suitable amounts of free space in the right filesystem.
|
| |
|
|\
| |
| |
| |
| |
| | |
git://git.baserock.org/baserock/baserock/morph
Reviewed-by: Tiago Gomes
|
| |
| |
| |
| |
| | |
I find it easier to read without them, since there are less variables
to remember.
|
| |
| |
| |
| |
| |
| |
| |
| | |
I find the loop easier to read since there's less redundancy.
Also less code to maintain.
Note that tmpdir is not explicitly created, since makedirs of one
of its subdirectories will handle that.
|
| |
| |
| |
| |
| |
| | |
I put my directory creation logic there, since it's an unintended
side-effect to create the directories if all you want to do is
dump the config.
|
|/
|
|
| |
It's just 1 system call instead of at least 3.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
git://git.baserock.org/baserock/baserock/morph
I had fixed an conflict and change to use morph_tmp instead of
morph as default temp dir.
Reviewed by Lars Wirzenius
Conflicts:
morphlib/app.py
|
| |
| |
| |
| |
| |
| | |
Now, inside the temporary directory we will have the following
subdirectories: chunks, staging, failed and deployments. The failed
directory will contain the staging areas of failed builds.
|
|\ \
| | |
| | |
| | |
| | |
| | | |
git://git.baserock.org/baserock/baserock/morph
Reviewed-by: Lars Wirzenius
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The same check that cachedir and tempdir are large enough is used
for both build and build-morphology.
Deploy only checks for tempdir being large enough.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This has no tests, as the ability to run them requires root privilidges
or a more recent kernel and user namespace support.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The size checks are irrelevant for most tests, since they tend to
produce tiny systems.
This still leaves the size checks themselves untested, however
doing so is arguably a system-wide test.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This has been a thorn in my side for many a deployment.
A nascent cache directory will cause the size checks to fail.
We could get complicated and try the parent directories, or create
the directories in the size check, but the former is not worth the
complication and the latter is the wrong place to put it, so do it
during process_args, so the directories exist before subcommands
are run, so they don't have to bother with it themselves.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This was a wild idea when we first designed the branch structure.
It causes more problems than it's worth as you may have multiple
workspaces, and it needed to be set manually in the first place.
|
| | |
| | |
| | |
| | | |
ciapp is not imported, but morphlib.Error is an appropriate exception
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | | |
git://git.baserock.org/baserock/baserock/morph
Reviewed-by: Lars Wirzenius on IRC.
|
| |/ |
|
|\ \
| |/
|/|
| | |
Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
|
| | |
|
|/ |
|
|\
| |
| |
| | |
Reviewed-By: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
|
|/
|
|
|
| |
Ensure that trove-id meets the same requirements as repo aliases in terms of
naming.
|