Skip to content
Snippets Groups Projects
  1. Feb 23, 2023
  2. Feb 03, 2023
  3. Feb 02, 2023
  4. Feb 24, 2022
  5. Jan 04, 2022
  6. Dec 22, 2021
  7. Dec 10, 2021
  8. Nov 16, 2021
  9. Oct 22, 2021
    • Frederic Danis's avatar
    • Frederic Danis's avatar
      Fix compiler warnings · 762c178b
      Frederic Danis authored
      
      ../managerd/boot-state-efi.c: In function ‘aum_boot_state_efi_read_dir’:
      ../managerd/boot-state-efi.c:78:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         78 |   while (conf_file_name_ = g_dir_read_name(dir_name))
            |          ^~~~~~~~~~~~~~~
      ../managerd/boot-state-efi.c: In function ‘aum_boot_state_efi_conf_file_save’:
      ../managerd/boot-state-efi.c:126:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        126 |   while (conf_file_name = g_dir_read_name(dir_name))
            |          ^~~~~~~~~~~~~~
      ../managerd/boot-state-efi.c:145:1: warning: control reaches end of non-void function [-Wreturn-type]
        145 | }
            | ^
      
      /usr/include/glib-2.0/glib/gmacros.h:1049:10: warning: ‘options’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       1049 |     { if (_ptr) (cleanup) ((ParentName *) _ptr); }                                                              \
            |          ^
      ../managerd/main.c:382:24: note: ‘options’ was declared here
        382 |   g_autoptr (GVariant) options;
            |                        ^~~~~~~
      
      Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
      762c178b
    • Frederic Danis's avatar
      Fix loopback cleanup · bd789be4
      Frederic Danis authored
      
      AUM crashes when an update is done OTA or using a downloaded bundle, i.e.
      not an encrypted bundle on an USB drive and so without a loopback set.
      
      Check presence of a loopback before trying to remove it.
      
      Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
      bd789be4
  10. Oct 15, 2021
  11. Aug 13, 2021
  12. Feb 21, 2021
    • Denis Pynkin's avatar
    • Denis Pynkin's avatar
      updatectl: allow to set polling time · c39fe2dd
      Denis Pynkin authored
      
      Added optional parameter for changing network updates polling time:
        updatectl --check-network-updates 3600
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      c39fe2dd
    • Denis Pynkin's avatar
      Allow to change the OTA polling time · 72179d5e
      Denis Pynkin authored
      
      Added property `UpdatesPollingTime` for delay between OTA upgrades
      attempts in seconds. Default is 300 seconds.
      Could be set configuration file as well:
       [Manager]
       UpdatesPollingTime=300
      
      Changing the property is not starting the update itself but reset the
      timer to new value if update has been enabled already.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      72179d5e
    • Denis Pynkin's avatar
      Allow to try the static delta without an upgrade · 006eab8a
      Denis Pynkin authored
      
      If the `--dry-run` is used for offline upgrade, the static delta
      will pass over all checks but upgrade will not started.
      
      The output from `updatectl` started in monitoring mode will contain:
       AUM-Message: 15:32:30.993: Upgrade status: Available
      
      and the log of AUM:
       Feb 21 15:32:57 apertis apertis-update-[1098]: Static delta is applicable for the system
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      006eab8a
    • Denis Pynkin's avatar
      Fix the OTA upgrade progress · 51ff8ae2
      Denis Pynkin authored
      
      Now it is logging the downloading progress correctly instead of keeping
      silence about the progress:
       Feb 21 13:01:56 apertis apertis-update-managerd[688]: Receiving metadata objects: 13/(estimating) 1.1 MB/s 2.1 MB
       Feb 21 13:01:57 apertis apertis-update-managerd[688]: Receiving metadata objects: 38/(estimating) 5.8 MB/s 17.3 MB
       Feb 21 13:01:59 apertis apertis-update-managerd[688]: Receiving objects: 29% (128/431) 5.9 MB/s 29.7 MB
       Feb 21 13:02:00 apertis apertis-update-managerd[688]: Receiving objects: 43% (186/431) 6.2 MB/s 37.1 MB
       Feb 21 13:02:01 apertis apertis-update-managerd[688]: Receiving objects: 58% (251/431) 5.7 MB/s 39.6 MB
       Feb 21 13:02:02 apertis apertis-update-managerd[688]: Receiving objects: 66% (286/431) 5.1 MB/s 40.4 MB
       Feb 21 13:02:04 apertis apertis-update-managerd[688]: Receiving objects: 92% (397/431) 4.3 MB/s 42.9 MB
       Feb 21 13:02:04 apertis apertis-update-managerd[688]: libostree pull from 'origin' for apertis/v2022dev1/amd64-uefi/minimal complete
                                                             security: GPG: disabled
                                                             security: SIGN: commit http: TLS
                                                             non-delta: meta: 70 content: 361
                                                             transfer: secs: 11 size: 43.3 MB
      
      Use the `ostree_repo_pull_default_console_progress_changed` from
      libostree instead of custom function `_ostree_upgrader_log_progress`,
      since we do not need to set the downloading state in this function
      anymore.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      51ff8ae2
    • Denis Pynkin's avatar
      Allow to check OTA upgrades availability · 94b43c70
      Denis Pynkin authored
      
      If the dry run mode is set then just check is the OTA update is available
      and do not try to download and apply the upgrade with:
        updatectl -u --dry-mode
      
      The log from `updatectl` started in monitor mode will have new status:
       AUM-Message: 14:45:27.283: Upgrade status: Available
      
      and the AUM log will contain the new string:
       Feb 21 14:45:27 apertis apertis-update-[888]: Network upgrade is available
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      94b43c70
    • Denis Pynkin's avatar
      updatectl: Add option '--dry-run' · 9886365e
      Denis Pynkin authored
      
      Option `--dry-run` should be used if we do not need to do an upgrade
      but want to check if OTA upgrade is available or offline upgrade is
      applicable for the current system.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      9886365e
    • Denis Pynkin's avatar
      Adding DryRunMode method · 04dcfd29
      Denis Pynkin authored
      
      The dry run mode allows to check the availability and appliance of the
      upgrade without the upgrade itself.
      Additional state `AUM_OSTREE_UPGRADE_STATE_AVAILABLE` shows if the OTA update
      is available and may be applied.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      04dcfd29
  13. Feb 04, 2021
Loading