-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'QubesOS:main' into main
- Loading branch information
Showing
25 changed files
with
1,605 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mQINBGCsMn0BEACiCKZOhkbhUjb+obvhH49p3ShjJzU5b/GqAXSDhRhdXUq7ZoGq | ||
KEKCd7sQHrCf16Pi5UVacGIyE9hS93HwY15kMlLwM+lNeAeCglEscOjpCly1qUIr | ||
sN1wjkd2cwDXS6zHBJTqJ7wSOiXbZfTAeKhd6DuLEpmA+Rz4Yc+4qZP+fVxVG3Pv | ||
2v06m+E5CP/JQVQPO8HYi+S36hJImTh+zaDspu+VujSai5KzJ6YKmgwslVNIp5X5 | ||
GnEr2uAh5w6UTnt9UQUjFFliAvQ3lPLWzm7DWs6AP9hslYxSWzwbzVF5qbOIjUJL | ||
KfoUpvCYDs2ObgRn8WUQO0ndkRCBIxhlF3HGGYWKQaCEsiom7lyi8VbAszmUCDjw | ||
HdbQHFmm5yHLpTXJbg+iaxQzKnhWVXzye5/x92IJmJswW81Ky346VxYdC1XFL/+Y | ||
zBaj9oMmV7WfRpdch09Gf4TgosMzWf3NjJbtKE5xkaghJckIgxwzcrRmF/RmCJue | ||
IMqZ8A5qUUlK7NBzj51xmAQ4BtkUa2bcCBRV/vP+rk9wcBWz2LiaW+7Mwlfr/C/Q | ||
Swvv/JW2LsQ4iWc1BY7m7ksn9dcdypEq/1JbIzVLCRDG7pbMj9yLgYmhe5TtjOM3 | ||
ygk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bvgju0e99QgHZMX2fN3d3ktdN5Q2fqiAi5R6BmCCO4ISF | ||
o5j10gGU/sdqGHvNhv5C21ibun7HEzMtxBhnhGmytfBJzrsj7GOReePsfTLoCoUq | ||
dFMOAVUDciVfRtL2m8cv42ZJOXtPfDjsFOf8AKJk40/tc8mMMqZP7RVBr9RWOoq5 | ||
y9D37NfI6UB8rPZ6qs0a1Vfm8lIh2/k1AFECduXgftMDTsmmXOgXXS37HukGW7AL | ||
QKWiWJQF/XopkXwkyAYpyuyRMZ77oF7nuqLFnl5VVEiRo0Fwu45erebc6ccSwYZU | ||
8pmeSx7s0aJtxCZPSZEKZ3mn0BXOR32Cgs48CjzFWf6PKucTwOy/YO0/4Gt/upNJ | ||
3DyeINcYcKyD08DEIF9f5tLyoiD4xz+N23ltTBoMPyv4f3X/wCQ= | ||
=ch7z | ||
-----END PGP PUBLIC KEY BLOCK----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig | ||
|
||
sqv --keyring ci/codecov-keys.asc codecov.SHA256SUM.sig codecov.SHA256SUM | ||
shasum -a 256 -c codecov.SHA256SUM | ||
|
||
chmod +x codecov | ||
|
||
if [[ "$CI_COMMIT_BRANCH" =~ ^pr- ]]; then | ||
PR=${CI_COMMIT_BRANCH#pr-} | ||
parents=$(git show -s --format='%P %ae') | ||
if [ $(wc -w <<<"$parents") -eq 3 ] && [ "${parents##* }" = "fepitre-bot@qubes-os.org" ]; then | ||
commit_sha=$(cut -f 2 -d ' ' <<<"${parents}") | ||
else | ||
commit_sha=$(git show -s --format='%H') | ||
fi | ||
exec ./codecov --pr "$PR" --sha "$commit_sha" "$@" | ||
fi | ||
exec ./codecov "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[run] | ||
source = vmupdate | ||
omit = | ||
vmupdate/agent/* | ||
vmupdate/tests/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# WARNING: those requirements are used only for travis-ci.org | ||
# they SHOULD NOT be used under normal conditions; use system package manager | ||
docutils | ||
pylint | ||
sphinx | ||
python-daemon | ||
mock | ||
lxml | ||
PyYAML | ||
xcffib | ||
tqdm | ||
pyxdg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
=============== | ||
qubes-vm-update | ||
=============== | ||
|
||
NAME | ||
==== | ||
qubes-vm-update - update software in virtual machines (qubes) | ||
|
||
SYNOPSIS | ||
======== | ||
| qubes-vm-update [options] | ||
OPTIONS | ||
======= | ||
|
||
Package Manager | ||
--------------- | ||
--no-refresh | ||
Do not refresh available packages before upgrading vm | ||
--force-upgrade, -f | ||
Try upgrade even if errors are encountered (like a refresh error) | ||
--leave-obsolete | ||
Do not remove obsolete packages during upgrading | ||
|
||
Targeting | ||
--------- | ||
--skip SKIP | ||
Comma separated list of VMs to be skipped, works with all other options. | ||
--targets TARGETS | ||
Comma separated list of VMs to target. Ignores conditions. | ||
--templates, -T | ||
Target all updatable TemplateVMs. | ||
--standalones, -S | ||
Target all updatable StandaloneVMs. | ||
--apps, -A | ||
Target running updatable AppVMs to update in place. Updates will be lost after vm restart. | ||
--all | ||
DEFAULT. Target all updatable VMs except AdminVM. Use explicitly with "--targets" to include both. | ||
|
||
Selecting | ||
--------- | ||
--update-if-available | ||
Update targeted VMs with known updates available | ||
--update-if-stale UPDATE_IF_STALE | ||
DEFAULT. Attempt to update targeted VMs with known updates available or for which last update check was more than N days ago. (default: dom0 feature `qubes-vm-update-update-if-stale` if set or 7) | ||
--force-update | ||
Attempt to update all targeted VMs even if no updates are available | ||
|
||
Propagation | ||
----------- | ||
--apply-to-sys, --restart, -r | ||
Restart not updated ServiceVMs whose template has been updated. | ||
--apply-to-all, -R | ||
Restart not updated ServiceVMs and shutdown not updated AppVMs whose template has been updated. | ||
--no-apply | ||
DEFAULT. Do not restart/shutdown any AppVMs. | ||
|
||
Auxiliary | ||
--------- | ||
--max-concurrency MAX_CONCURRENCY, -x MAX_CONCURRENCY | ||
Maximum number of VMs configured simultaneously (default: number of cpus) | ||
--log LOG | ||
Provide logging level. Values: DEBUG, INFO (default), WARNING, ERROR, CRITICAL | ||
--signal-no-updates | ||
Return exit code 100 instead of 0 if there is no updates available. | ||
|
||
--no-progress | ||
Do not show upgrading progress | ||
--dry-run | ||
Just print what happens | ||
--no-cleanup | ||
Do not remove updater files from target qube | ||
|
||
--help, -h | ||
Show this help message and exit | ||
--quiet, -q | ||
Do not print anything to stdout | ||
--show-output, --verbose, -v | ||
Show output of management commands | ||
|
||
|
||
How to correctly use targeting and selection? | ||
|
||
Targeting is used to choose the VMs that will be checked for available updates, and the three-level selection is used to check if the previously chosen VMs qualify for updates (i.e., there are, for example, updates available for them). | ||
|
||
Additionally, not all VMs in the system can be updated directly (such as AppVMs), and to update them, you must use one of the "propagation" options. This means, after updating the template, restarting the VM and applying the installed updates to it. Using at least the `--apply-to-sys` flag is recommended, which restarts all service VMs. Keep in mind that during this process, unsaved data may be lost. | ||
|
||
RETURN CODES | ||
============ | ||
|
||
0: ok | ||
|
||
100: ok, returned if `--signal-no-updates` and no updates available | ||
|
||
1: general error | ||
|
||
2: usage error, unrecognized argument | ||
|
||
11: error of TemplateVM shutdown | ||
|
||
12: error of AppVM shutdown | ||
|
||
13: error of AppVM startup | ||
|
||
21: general error inside updated vm | ||
|
||
22: error inside updated vm during updating/installing prerequisites/patches | ||
|
||
23: repo-refresh error inside updated vm, check if vm is connected to network | ||
|
||
24: error inside updated vm during installing updates | ||
|
||
25: unhandled error inside updated vm | ||
|
||
40: qrexec error, communication across domains was interrupted | ||
|
||
64: usage error, wrong parameter value | ||
|
||
130: user interruption | ||
|
||
AUTHORS | ||
======= | ||
| Piotr Bartman-Szwarc <prbartman at invisiblethingslab dot com> |
Oops, something went wrong.