- Sep 02, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
During up-streaming of ostree, the API of `ostree_sign_commit_verify` and `ostree_sign_data_verify` have changed compared to the downstream version, by adding a new parameter to retrieve success message. Due to this, AUM request this minimum version. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Aug 28, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
`ostree_sign_commit_verify` and `ostree_sign_data_verify` APIs has changed by adding a new parameter to retrieve success message. Currently we don't use it. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Jul 03, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
Current asserts on AumBootState object in aum_boot_state_*() functions ends up when there is no boot state backend available, i.e. for UEFI AMD64 targets, by trying to rollback the OS. Replacing those asserts by tests returning default values allows AUM to handle this case gracefully and with better debug message. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Jun 22, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
When we try to apply a delta file with an unsigned superblock, the apertis-update-manager crash with SEGV. g_autoptr variable need to be initialized to NULL, in case function exits before the variable is assigned and used. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Jun 04, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
The encrypted interface of the loop device object in udisks2 can take times to appear, this occurs only after boot. If after 2 seconds (20 tries with 0.1s delay) the interface is still not available, it may be because there's no encrypted data in the file. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
If the `/usr/share/apertis-update-manager` directory exists and an external device, USB or SDCard, has a `static-update.bundle.enc` in its root directory, this file is decrypted (using loopback device and dm-crypt) and mounted. This will trigger a new `mount-added` signal, which will be able to found the `static-update.bundle` file and process with he update. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
All item returned by g_variant_iter_next_value() should be unrefed. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
The error needs to be de-referenced to get the real error pointer. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Apr 24, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
Add `aum_get_target_metadata` to verify the superblock metadata, expect signature and commits. Add `aum_load_target_superblock` to load static delta superblock, used by `aum_get_target_metadata` and `aum_target_superblock_verify_signature`. This prevents 2 times read problem, i.e. a first read from the media device to check signature and claim static delta as a "safe" file followed by a second read to parse the superblock again. The special HW with USB media "emulation" may substitute bits to others for the second read. Add function to load keys, shared by `aum_check_signature` and `aum_target_superblock_verify_signature`. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Apr 10, 2020
-
-
Denis Pynkin authored
Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
Allow to use relative path including local directory for ostree deltas for updatectl tool. This help to avoid confusion with non-existion file for end users. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- Mar 31, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
New `uboot.cnt` file format appears in u-boot 2019.01+dfsg-7co7. AUM should be able to work with both legacy and new u-boot, and their `uboot.cnt` respective file formats. Otherwise AUM consider the file is corrupted and triggers a rollback. This commit allows to update AUM in a first step, work with the current u-boot before upgrading it. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Mar 30, 2020
-
-
Ritesh Raj Sarraf authored
-
- Mar 12, 2020
-
-
Frederic Danis authored
Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
Frederic Danis authored
After a successful upgrade, multiple failures during boot sequence may trigger the u-boot altbootcmd process which will trigger an unexpected rollback. This patch adds a version and an upgrade_available entries to the bootcount file to enable/disable the bootcount check. Signed-off-by:
Frédéric Danis <frederic.danis@collabora.com>
-
- Mar 05, 2020
-
-
Denis Pynkin authored
Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
Calling the ostree_sysroot_cleanup() function with initialized error variable cause assertion: "_ostree_repo_lock_push: assertion 'error == NULL || *error == NULL' failed" This issue is preventing correct repository prune in case of any problem occurred during upgrade. We do not want to mark the upgrade process as failed in case of any error acquired during cleanup, hence just drop a warning message. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- Jan 14, 2020
-
-
Andrew Lee (李健秋) authored
Signed-off-by:
Andrew Lee (李健秋) <ajqlee@debian.org>
- Sep 17, 2019
-
-
Denis Pynkin authored
Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
Verify if commit provided in delta file is signed with valid `ed25519` signature. Public key for signature could be provided in config via file or key itself by using options for remote `verification-file` and `verification-key` respectively. If none of above is provided, then public keys provided by system are used. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- Jun 03, 2019
-
-
Denis Pynkin authored
Allow to install configuration file. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
Explicitly disable OTA updates in config file. Added all other supported options commented out. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
This method enable network updates and immediately start server polling. Added appropriate handler in update manager. Added option "--check-network-updates|-u" for CLI utility `updatectl` to call this method. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
- May 31, 2019
-
-
Denis Pynkin authored
Added function `aum_ostree_upgrader_set_ready()` to reset the timer to start the server pooling immediately if polling is set. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- May 27, 2019
-
-
Denis Pynkin authored
Added check of metadata first, so we do not need to download the whole commit to decide if it fits for our system. Refactored `_ostree_upgrader_update_thread()` function to allow to use the advantages of metadata check prior downloading the commit. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
Almost no chance to catch this error but have to return correct error state in any case. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- May 12, 2019
-
-
Denis Pynkin authored
In case if 'origin' file contain some transient state the online upgrade fails with error: "OSTree:ERROR:src/libostree/ostree-repo-pull.c:1823:scan_commit_object: assertion failed: (ref)" In case of Apertis the "override-commit" is heavily used for test purposes. Have to cleanup the origin prior to pulling the upgrade. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- Apr 30, 2019
-
-
Denis Pynkin authored
Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
We track the version of AUM via package version. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
Denis Pynkin authored
Fix the issue with system reboot after update -- executing of 'systemctl' doesn't reboot the system. Call the Reboot() method of systemd via dbus instead of execution the 'systemctl'. Fixes: APERTIS-5907 Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-