Skip to main content

Core Module Update Interface

Project description

Device Updater Plugin

Exposes a messagebus API to check for and initiate OS-level updates. This plugin expects an update-initramfs system service to be installed to apply InitramFS updates and for the SquashFS update path to be applied upon restarting.

Configuration

The remote URLs and local paths for InitramFS and SquashFS files used by this plugin may be set in configuration. The messagebus API supports branch in data which is used to fill string templates in configured URLs; this is generally used to select a git branch.

PHAL:
  admin:
    neon-phal-plugin-device-updater:
      enabled: True
      initramfs_url: "https://github.com/NeonGeckoCom/neon_debos/raw/{}/overlays/02-rpi4/boot/firmware/initramfs"
      initramfs_path: /opt/neon/firmware/initramfs
      initramfs_update_path: /opt/neon/initramfs
      squashfs_path: /opt/neon/update.squashfs
      default_track: dev

Messagebus API

The following Messagebus listeners are exposed by this plugin. The track data parameter is optional and will default to the configured default_track if not specified.

Check for InitramFS Updates

Check for an available InitramFS update and emit a response with data: update_available and track.

Message("neon.check_update_initramfs", {'track': 'dev'})

Update InitramFS

Install an available InitramFS update and emit a response with data: updated and optionally error.

Message("neon.update_initramfs", {'track': 'dev'})

Check for SquashFS Updates

Check for an available SquashFS update and emit a response with data: update_available and track.

Message("neon.check_update_squashfs", {'track': 'dev'})

Update SquashFS

Check for an available InitramFS update and emit a response with data: new_version or error.

Message("neon.update_squashfs", {'track': 'dev'})

Get Build Info

Get metadata for currently installed build:

Message("neon.device_updater.get_build_info")

Get Download Status

Query the plugin if an update is currently downloading:

Message("neon.device_updater.get_download_status")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neon-phal-plugin-device-updater-0.3.1a1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file neon-phal-plugin-device-updater-0.3.1a1.tar.gz.

File metadata

File hashes

Hashes for neon-phal-plugin-device-updater-0.3.1a1.tar.gz
Algorithm Hash digest
SHA256 977c960b880bd9ddb679a8ebc6146e71826ea80e34cc06d18e2dc3ecaebd85a7
MD5 53d44fee79f99b4f67b62dc5fd0f5c95
BLAKE2b-256 454d814c0b5ff6228409b2df0e568d8eec23faa34b5f3685df609e6d8ff4a3e1

See more details on using hashes here.

File details

Details for the file neon_phal_plugin_device_updater-0.3.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for neon_phal_plugin_device_updater-0.3.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 868e6a0add9f18b5480ed78c013d754c3e8ddc5b9077502889e2915ed06282de
MD5 5477afc5fbf8c6695a359f05496f198b
BLAKE2b-256 b2c347071043de0c8a96a6f04b5642905504c108dbf2aebec693c79c30bb14ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page