Skip to content

Igalia/yocto-sysupdate-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yocto-sysupdate-demo

This repository contains a demonstration of how systemd-sysupdate can be integrated with images built using the Yocto project.

Build it

Building this demo requires using kas as follows:

$ pip3 install kas
$ export DL_DIR=$PWD/cache/downloads/
$ export SSTATE_DIR=$PWD/cache/sstate-cache/
$ export IMAGE_VERSION=0
$ kas shell kas-poky-demo.yml
$ bitbake -c build core-image-demo

Try it

Testing the image can be done with runqemu as follows:

$ runqemu snapshot kvm nographic slirp ovmf qemux86-64 tmp/deploy/images/qemux86-64/core-image-demo-qemux86-64.rootfs.wic

Update it

Updating a running image requires to generate new images with bumped IMAGE_VERSION, publishing updates and then pulling these updates from the running image:

From the server side:

$ export IMAGE_VERSION=1
$ # build image as shown above
$ mkdir -p ./updates
$ cp build/tmp/deploy/images/qemux86-64/updates/* ./updates
$ (cd ./updates && sha256sum * > SHA256SUMS && python3 -m http.server 3333)

From the client side:

$ updatectl check
$ updatectl update
$ reboot

License

MIT License

Copyright (c) 2025 Igalia S.L.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published