aboutsummaryrefslogtreecommitdiff
path: root/utils/auc
Commit message (Collapse)AuthorAge
* auc: update to version 0.1.8Daniel Golle2021-06-30
| | | | | | | This fixes support for x86, auc now selects the right combined image depending on the system being booted in EFI mode or not. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to version 0.1.7Daniel Golle2021-06-15
| | | | | | | | No longer fail in case a package is part of multiple lists (which may happen temporarily in case it becomes 'nonshared'). Bump version to prepare for sync accross branches. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: fix several issuesDaniel Golle2021-06-13
| | | | | | | | | | * don't segfault if server reply is incomplete * always request 'generic' image on x86/generic and x86/64 * make SNAPSHOT branches sticky, eg. stay on 21.02-SNAPSHOT and do not 'upgrade' to 21.02.0-rc2. * output requested server URL when debugging Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* treewide: back to cmake.mkRosen Penev2021-06-12
| | | | | | Ninja was merged to base and therefore we can now use normal cmake.mk Signed-off-by: Rosen Penev <rosenp@gmail.com>
* auc: support queue_position status from serverDaniel Golle2021-05-10
| | | | | | Display position in queue while waiting for build. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: compare versions using dpkg/opkg's verrevcmpDaniel Golle2021-04-26
| | | | | | | Using strcmp() to compare a version string doesn't work well. Use verrevcmp() function from opkg instead. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* treewide: build CMake projects with NinjaRosen Penev2021-03-27
| | | | | | | | | | | | | | | | | | | | faster to compile. A small selection of packages was tested going from: Executed in 696.30 secs fish external usr time 82.98 mins 395.00 micros 82.98 mins sys time 9.02 mins 0.00 micros 9.02 mins to: Executed in 592.20 secs fish external usr time 84.84 mins 361.00 micros 84.84 mins sys time 8.85 mins 57.00 micros 8.85 mins Tested by running make -j 12 and wiping staging/build_dir/target_x Signed-off-by: Rosen Penev <rosenp@gmail.com>
* auc: bump to version 0.1.6Daniel Golle2021-03-18
| | | | | | Fixes running on release branches. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: several improvementsDaniel Golle2021-03-15
| | | | | | | | | | | | | * include version_code in request * include versions of selected packages in request * add SHA256 verification via busybox sha256sum * sort attributes in policies alphabetically * move all API-specific string constants to precompiler macros * set correct MIME type for JSON post request (application/json) * output string error message if something goes wrong * auto-generate version string Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: improve CLIDaniel Golle2021-03-10
| | | | | | Make some cosmetics improvements. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to new server APIDaniel Golle2021-03-10
| | | | | | | This updates auc to use the new API of the sysupgrade image server. Package version updates now need to be evaluated locally. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: link to libdl when neededRosen Penev2020-12-30
| | | | | | Fixes compilation under glibc. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* auc: send revision in update checkDaniel Golle2019-03-08
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: adapt to server and ubus APIDaniel Golle2019-03-07
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: remove left-over subtarget stringDaniel Golle2019-03-07
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: more API updatesDaniel Golle2019-03-06
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: sync with server APIDaniel Golle2019-03-06
| | | | | | | Drop pre-ucert signature verification. HTTPS is optional now as integrity can also be provided using ucert. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: always send version when requesting imageDaniel Golle2018-03-23
| | | | | | Fixes #5799 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to version 0.0.9Daniel Golle2018-02-23
| | | | | | | | | | | | | | | | | * use full package list when checking for upgrades * verify sha256sums and usign signature of sha256sums.sig * introduce '-c' option to only check if system is up-to-date * introduce '-F' option to ignore the signature verification result * return -1 on locally caused and -2 on server-side errors * don't include locally appended attributes in debug output of a server reply * output bug report note on 412 target not found * use content-length header instead of filesize field in JSON content * suppress duplicate error messages * drop unused attributes * make debug messages optional at compile-time Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to version 0.0.8Daniel Golle2017-11-30
| | | | | | | | | | | | * fix multiple read_data_cb calls from uclient, otherwise hickups happend when receiving a large JSON reply * add minimal help message (-h) * pretify package update output * fix infinite retry of upgrade-check which happened in some cases * add sleep in case of check-request retry * lots of cosmetics Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to version 0.0.7Daniel Golle2017-11-26
| | | | | | * implement using GET instead of POST requests when waiting for image Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to version 0.0.6Daniel Golle2017-11-24
| | | | | | | * handle newly introduced 'initialize' server status * cosmetics Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to version 0.0.5Daniel Golle2017-11-23
| | | | | | | * use HTTP headers to know ImageBuilder status and queue position * use pretty (ie. indented) JSON output for debugging Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: update to version 0.0.4Daniel Golle2017-11-23
| | | | | | | | | | | | * implement '-d' cmdline option to output json requests * switch to new server API * implement upgrade_packages Read upgrade_packages UCI option and ask for either only release upgrades or also builds based on updated packages depending on whether upgrade_packages is '0' or '1'. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: be a bit more verboseDaniel Golle2017-11-13
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: small improvementsDaniel Golle2017-11-13
| | | | | | | | Detect if calling rpc-sys packagelist fails due to the method not being provided by rpcd. Mark package as experimental. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* auc: add new packageDaniel Golle2017-11-12
The Attended sysUpgrade CLI is a full-featured client for the attended-sysupgrade service which works directly on the target device. It requires libustream-ssl as well as at least the CA certificate needed to contact the sysupgrade server. It has only been tested briefly and is by no means ready for production! Signed-off-by: Daniel Golle <daniel@makrotopia.org>