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_url: "https://2222.us/app/files/neon_images/pi/mycroft_mark_2/updates/{}/"
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'})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for neon-phal-plugin-device-updater-0.1.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab5ffe5d94f8a26b236f49a0e898f3c8289e05919f517ba1e1c59f4f99efcdd7 |
|
MD5 | 1bbf302371c0b1b6d51cceba248f3cd9 |
|
BLAKE2b-256 | e0be392d91b56e6c859be32e9798189eec2672ec923b0f34d4fe20499e285ab5 |
Hashes for neon_phal_plugin_device_updater-0.1.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6eae989bf2916a7458520c1ed5144f620fc8b6daa262b1030381173598600d |
|
MD5 | a36dfc8cadde9797a421fed60c3a62db |
|
BLAKE2b-256 | a350445615acca3a5770c1ca3d82004c093c9ff0b989210e75d31d56e85c005c |