30 Commits
Author SHA1 Message Date
Matthew Johnson 48a016f001 man-pages: add os-format reference
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-10-22 14:11:43 -07:00
Otavio Pontes 3287a87e53 Remove 404 from the list of possible swupd return codes
Linux programs return code should be a number between 0 and 255, so 404 is an
invalid return code. Removing it from docs and from swupd-error.h file.

As it wasn't being used, this won't be a problem.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2018-10-18 10:19:29 -07:00
Otavio Pontes cffe1a66a4 Fix documentation and bash script after parameter rename
max-parallel-pack-downloads was renamed to max-parallel-downloads
and documentation needs to be fixed

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2018-10-10 14:22:46 -07:00
Castulo Martinez 6f846b9069 Adding the --keepcache option when doing updates
After running an update, the state directory is cleaned up.
Sometimes it is useful to be able to peek at the state directory
after an update, this is specially true when testing updates,
this way tests can verify what manifests were downloaded during
the update.

This commit adds the --keepcache option to swupd update so it can
be used when writing tests for updates.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2018-10-03 15:43:11 -07:00
Otavio Pontes 15b987ccb1 download: Add a parameter to control the parallel pack downloads
Add parameter --max-parallel-pack-downloads to control the number
of packs to be downloaded in parallel. This is usefull if for some
reason the default value is too high or low for your configuration.
2018-09-11 14:27:10 -07:00
Otavio Pontes 8fb7ca8f2f Fixing typos and orthography errors on docs and codebase
Errors reported by codespell (https://github.com/codespell-project/codespell)
2018-08-24 11:15:41 -07:00
Matthew Johnson 51538dd495 swupd-add-pkg: remove deprecated script
Replaced by mixin in the mixer-tools project.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-08-15 11:49:33 -07:00
Otavio Pontes 69e0ae9736 docs: Fix typo (s/privilged/privileged/) 2018-08-15 09:57:38 -07:00
Icarus Sparry a1b10fc81b Notes on debugging Travis.
Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
2018-07-23 11:37:05 -07:00
Brian J Lovin 82a88d30a8 manpage: Add --skip-diskspace-check to bundle-add
Added a description for the new --skip-diskspace-check flag
to the bundle-add section of the swupd manpage.

Fixes #506

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2018-06-29 14:23:20 -07:00
Matthew Johnson 5f39d1e86e manpages: add return-code documentation
Additionally remove the unused EPREP_MOUNT error code.
Fixes #296

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-06-18 10:50:40 -07:00
Matthew Johnson 356ce157c1 swupd-add-pkg: remove sudo invocations
Instead of doing this behind the user's back expect them to do it
themselves. This also removes the inconsistencies of running some
commands with sudo -E and others without -E. If users want to provide -E
let them do it themselves.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-05-10 14:52:09 -07:00
Matthew Johnson b654f34115 Add documentation for mirror subcommand
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-04-30 14:25:57 -07:00
Matthew Johnson 6dd8c6abb6 docs: move 'info' subcommand to alphabetical order
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-04-30 14:25:57 -07:00
Caio Marcelo de Oliveira Filho c9469307f4 update: allow update to a specific version using -m
Allow updating to a version greater than current using -m. Also
supports 'latest' that has the same behavior as not passing any flag.

If the requested version is smaller than the server version (which
is the latest one available in the current format), use that. If not,
use the latest available and re-execute.

Care was taken so that a "update -m LAST_OF_A_BUMP" will not trigger a
re-execution of update.

At the moment version_url is still used, but a future improvement
could avoid it by first looking at the format of the given version
first.

Fixes #257.
2018-04-14 20:34:58 -07:00
Geoffroy Van Cutsem 317d44fe3c Update "swupd verify" documentation to cover all options
Add "swupd verify" options that were missing from the documentation
(swupd.1.rst and swupd.1) but listed by the tool when calling
"swupd verify -h". The order was also slightly changed to be
identical to the order used by "swupd verify -h".

Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
2018-04-14 16:28:09 -07:00
Caio Marcelo de Oliveira Filho 88eea5f9e9 Add info command to show OS version and URLs
Fixes #218.

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2018-01-25 10:02:44 -08:00
Matthew Johnson de773f8ecf Add missing flags to man page
The following flags have been added to the man page
--no-scripts
--nosigcheck
--ignore-time
--certpath
--time
--no-boot-update

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-01-23 14:05:32 -08:00
Matthew Johnson 24e0803d85 Update out-of-date man page
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-12-01 11:00:02 -08:00
Patrick Ohly d59738ece7 swupd verify: fix --picky, add --picky-tree and--picky-whitelist
The code implementing the suppression of /usr/lib/kernel,
/usr/lib/modules and /usr/local did a rather simplistic prefix
comparison with strncmp() to match path names against these
exceptions. As a result, paths like /usr/lib/kernel.old which should
get reported also got skipped.

An if check tested the wrong variable, so the result from strdup()
wasn't checked.

The replacement code uses regular expression matching and allows
replacing the default (--picky-whitelist
"/ignore-this-top-level-dir"). A single parameter is enough when using
the | operator.

A/B partition update must remove extra files in the entire partition,
which can be selected with --picky-tree=/, and also needs to override
the default whitelist.

Fixes #336
Implements #239

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2017-11-30 17:15:09 -08:00
Tudor Marcu 2ed73f38e3 Update add-pkg.sh naming and fix man pages
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2017-11-03 11:50:08 -07:00
Tudor Marcu bc0fbefafc Add man pages and add-pkg.sh
The add-pkg.sh script handles all of the custom mixer content generation
for use added content. Supporting documentation is added to explain its
behaviour and the additional swupd command to incorporate the local content.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2017-11-03 11:50:08 -07:00
Matthew Johnson da21ad7eef Add bundlelist --deps subcommand
Allow user to list all bundle dependencies of a bundle passed to

swupd bundle-list --deps BUNDLE

This lists all included bundles (included those recursively included)
for the BUNDLE. This is particularly useful when applications or users
need to determine just how large the bundle addition will be. For
example, a user may not be aware that by bundle-adding desktop-dev they
are recursively adding 12 other bundles. This command allows the user to
make this check before installation.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-08-31 09:50:50 -07:00
Icarus Sparry 2487e5b5d0 Add swupd autoupdate command
"swupd autoupdate" returns 0 if autoupdates are enabled.
"sudo autoupdate --enable" will unmask swupd-update.service
"sudo autoupdate --disable" will mask swupd-update.service

Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
2017-05-17 15:28:44 -07:00
Auke Kok 1dda3bea12 Update man page output. 2017-03-20 11:11:46 -07:00
Auke Kok 226ae1e241 Convert man pages to RST.
This conversion is mostly manual, but fairly straightforward.

Based on templates from clr-man-pages
2017-03-20 11:11:46 -07:00
Mario Alfredo Carrillo Arevalo f3c053f782 Update documentation about bundle-[add|list] sub-commands
The option [-l, --list] is no longer part of "bundle-add"
sub-command, now this option has been taken by "bundle-list"
sub-command using a new name [-a, --all], this information
is updated in swupd man page and markdown file.

Signed-off-by: Mario Alfredo Carrillo Arevalo <mario.alfredo.c.arevalo@intel.com>
2017-01-31 12:38:29 -08:00
Mario Alfredo Carrillo Arevalo ee69a9d581 Add doc about bundle-list sub-command
This information describes the funcionality
of "bundle-list" sub-command. It is added to
swupd man page and swupd markdown file.

Signed-off-by: Mario Alfredo Carrillo Arevalo <mario.alfredo.c.arevalo@intel.com>
2017-01-18 09:52:49 -08:00
Auke Kok b43ad9748e Add generated troff files.
These are the files we will actually install on the system,
and the ones that are shipped in the tarball release.
2016-11-17 00:52:22 -08:00
Auke Kok 74b8515cd5 Add man (manual) pages.
Add a large amount of manual pages to swupd-client project. These are
meant to cover a large amount of topics and should cover the needed
material for people who are either using, or mixing with swupd,
and so this goes a bit further than end user documentation.

I've put the unit stuff in section 4. Any other section seemed
less related.
2016-11-17 00:52:22 -08:00