summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ostree.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* Replace INITRAMFS_FSTYPES with OSTREE_INITRAMFS_FSTYPESRicardo Salveti2018-05-161-1/+1
| | | | | | | | | | User is able to customize the init script via OSTREE_INITRAMFS_IMAGE but there is no way to set INITRAMFS_FSTYPES as it gets defined by sota.bbclass. Create a new variable called OSTREE_INITRAMFS_IMAGE to handle the INITRAMFS_FSTYPES update, and also allow the user to override it. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* sota: introduce INITRAMFS_FSTYPESMing Liu2018-05-151-2/+1
| | | | | | | | | | | | | RAMDISK_EXT and IMAGE_FSTYPES of initramfs-ostree-image should not be defined separately, because they are representing the same fstype of a same initramfs image, or else, they turn out to be inconsistent if the users change one of them. So we use INITRAMFS_FSTYPES already defined in bitbake.conf, to be able to set fstype for initramfs. And it should default to ext4.gz.u-boot or ext4.gz depending on what OSTREE_BOOTLOADER is being set. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* image_types_ostree.bbclass: change the systemd detecting logicMing Liu2018-05-151-1/+1
| | | | | | | | It can not determine the init manager is systemd by checking if DISTRO_FEATURES contains 'systemd', change it to check VIRTUAL-RUNTIME_init_manager instead. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* image_types_ostree.bbclass: clean up GARAGE_SIGN_REPO after pushRicardo Salveti2018-05-141-0/+1
| | | | | | Avoid exposing the sign repo after the build is completed. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* Add support for custom garage target version and urlRicardo Salveti2018-05-111-2/+8
| | | | | | | Both values can be defined by the user, allowing a custom version id and URL, which is specially useful for CI builds. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* image_types_ostree.bbclass: do not inherit imageMing Liu2018-05-111-2/+0
| | | | | | | As a image_types_* bbclass, it does not have to inherit image class, it is sort of redundant code. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Assorted minor cleanup and formatting.Patrick Vacek2018-03-291-6/+19
| | | | | | Includes the suggestion for using /etc/sota/sota.env if it exists as recommended by the discussion here: https://github.com/advancedtelematic/meta-updater/pull/275
* Merge branch 'pyro' into rockoAnton Gerasimov2018-01-261-1/+3
|\
| * Deploy initial primary version informationAnton Gerasimov2018-01-191-1/+3
| |
* | Merge branch 'pyro' into bugfix/update-rockoPatrick Vacek2018-01-171-17/+22
|\| | | | | | | Bring over fixes from the last couple months from pyro in rocko.
| * Fix --repo parameter for garage-signAnton Gerasimov2018-01-101-5/+5
| |
| * Merge pull request #213 from advancedtelematic/doc/PRO-4532/secondaries-etccajun-rat2018-01-021-0/+1
| |\ | | | | | | Update documentation, specifically about variables to support secondaries
| | * Update documentation, specifically about variables to support secondaries.Patrick Vacek2017-12-151-0/+1
| | | | | | | | | | | | | | | Also add a missing mkdir so that SOTA_SECONDARY_ECUS actually works. We can improve this in the future but for now it works and I'm using it.
| * | Fixes for SpekulatiusAnton Gerasimov2017-12-201-8/+5
| |/ | | | | | | | | | | - New garage-sign interface - Remove garage-sign recipe (now installed with aktualizr-native) - Small but critical bugfixes in aktualizr
| * Fix garage-sign targets add.Patrick Vacek2017-12-051-1/+1
| |
| * Rename repo.url -> tufrepo.urlAnton Gerasimov2017-11-231-7/+3
| | | | | | | | Also pass this URL to garage-sign
| * Check if the package and UPTANE target got to the backendAnton Gerasimov2017-11-211-3/+14
| |
* | Add fixes for compatibility with RockoAnton Gerasimov2017-11-171-3/+3
|/
* Add managing targets.json by garage-signAnton Gerasimov2017-11-131-0/+56
|
* Fix ca-certificates-native dependency.Patrick Vacek2017-11-081-1/+1
| | | | | /etc is not added to the sysroot by default, so force it. Also, move the dependency to where it is actually used.
* Use garage-push from aktualizr repo.Patrick Vacek2017-10-241-1/+1
| | | | | | No need for sota-tools repo anymore. Bump aktualizr version to get necessary build fix.
* Move provisioning out of ostree bbclass into autoprov recipe.Patrick Vacek2017-10-051-48/+1
| | | | | Also remove implicit-prov from DISTRO_FEATURES. Just specify SOTA_CLIENT_PROV directly.
* Create recipe for implicit provisioning file shuffling.Patrick Vacek2017-09-291-1/+3
| | | | | | | | Split aktualizr into basic and native recipes by moving most of the work to an include file. Use aktualizr-implicit-writer (on host) to do the actual work of configuring sota.toml and installing files. Still not quite fully functional.
* Formatting.Patrick Vacek2017-09-251-190/+192
| | | | According to https://www.openembedded.org/wiki/Styleguide
* Hacky ability to provide client credentials and install them on the device.Patrick Vacek2017-09-121-0/+19
|
* Pyro needs coreutils-native (we call sync) b/c rssJan-Simon Möller2017-09-091-0/+1
| | | | | We need to make sure 'sync' is in place. Unzip-native could probably also use ":do_populate_sysroot".
* Merge remote-tracking branch 'github/morty' into HEADPhil Wise2017-08-241-47/+36
|\
| * Show warnings if credentials are not providedLeon Anavi2017-08-171-7/+16
| | | | | | | | | | | | | | Print warnings if variable SOTA_PACKED_CREDENTIALS is not set or if the specified file does not exist. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
| * Delete treehub.json from the credentials package on the deviceAnton Gerasimov2017-08-101-0/+3
| |
| * Call garage-push directly with zip file instead of sending unzipped contents.Patrick Vacek2017-08-071-43/+16
| | | | | | | | | | Warn if older credential environment variables are set. They are now ignored since the credentials aren't unpacked during building.
| * Split rvi-sota-client into multiple binariesShaun Taheri2017-07-261-1/+5
| |
* | image_types_ostree.bbclass: Fix path to unzipLeon Anavi2017-07-071-1/+2
|/ | | | | | | | | The creation of images, such as rpi-basic-image failed on branch Pyro due to missing/wrong path to unzip. This patch adds unzip-native as a dependency and ensures that the image will be created successfully. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* Aktualizr updates, including sync()Phil Wise2017-06-261-1/+1
| | | | | Perform sync() after provisioning Store sota.toml in updatable /usr directory
* Fix broken EnglishOYTIS2017-05-261-2/+2
|
* Fix a typoOYTIS2017-05-261-1/+1
|
* Add support for zipped credentialsAnton Gerasimov2017-05-241-0/+48
|
* Merge from meta-agl-extraAnton Gerasimov2017-04-031-2/+7
|
* Fix several critical bugs in mortyAnton Gerasimov2017-02-241-1/+1
|
* Copy image manifest to /usrAnton Gerasimov2017-01-031-0/+3
|
* Make systemd optionalAnton Gerasimov2016-12-201-7/+28
|
* Bump versions of meta-sota utilitiesAnton Gerasimov2016-11-221-12/+2
| | | | | Change-Id: I36a4d3d24826ab8776bc980b50aef8606af9e7a8 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* A tool for uploading OSTree objects to a server together withAnton Gerasimov2016-11-081-0/+19
| | | | | | | | | integration code Bug-AGL: SPEC-194 Change-Id: I650e190bbda67ad48233bc5aedc0c10ff14aa58f Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Move machine-dependent sota configuration to machine templatesAnton Gerasimov2016-10-281-3/+5
| | | | | Change-Id: Iaf00906eb44f50490a67e5f5e5ca229fd1f76028 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* OSTree-enabled image for raspberry PiAnton Gerasimov2016-10-271-1/+4
| | | | | | | | | | | | | Bug-AGL: SPEC-254 v2 [jsmoeller]: change rpi fdt addr to 200M (fix cma), re-add inherit gobject-introspection (!) v3 [oytis]: move boot logic to editable uEnv.txt Change-Id: Ic54aadc8377ed1e2a8f2f4ab87db2a7a6660cd15 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com> Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
* Tuned initrd image and pseudo environment to fix bugs with extendedAnton Gerasimov2016-10-041-2/+2
| | | | | | | | | security attributes. Bug-AGL: SPEC-259 Change-Id: I44499ce3f5f1924aecf63689a93d1f20e779225e Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Added initramfs image and fixed several error to make AGL rootfsAnton Gerasimov2016-09-261-23/+57
| | | | | | | | | bootable as an OSTree deployment Bug-AGL: SPEC-253 Change-Id: If636a282d51a64c73c46ce70a361518c1f70cdd6 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Change do_rootfs to do_image_* after respective change in poky.Anton Gerasimov2016-09-121-1/+1
| | | | | | | Bug-AGL: SPEC-249 Change-Id: Ib5d725f203c0b0545b7c6b3196afb149ac8015c2 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Adds image type for OSTree deployment sysrootAnton Gerasimov2016-09-011-0/+87
Bug-AGL: SPEC-246 Change-Id: I1390d1aae652f84b61a3b9ca33ae886c138edc50 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>