summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ota.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* image_types_ostree: Add a unique ref to fix simultaneous bitbaking.fix/OTA-2211/simultaneous-bitbakingPatrick Vacek2019-02-211-1/+1
| | | | | | | | | | | | To enable simultaneous bitbaking of two images with the same branch name, create a new ref in the OSTree repo using the basename of the image. As @OYTIS has pointed out, this probably won't solve every problem that might come up with simultaneous bitbaking, such as if the two images use different bootloaders. However, it does solve the immediate problem that comes up with our primary-image + secondary-image example. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* meta: drop True option to getVar callsMing Liu2019-01-141-3/+3
| | | | | | | Search made with the following regex: getVar ?\((.*), True\), this is to be consistent with OE. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* image_types_ota.bbclass: fix a typoMing Liu2019-01-141-1/+1
| | | | | | type -> size. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* aktualizr and image_types_ota: more curly braces.fix/more-curly-bracesPatrick Vacek2018-11-281-4/+4
| | | | | | | | Just trying to be careful and consistent. I didn't change every variable in places where it seemed like it was obvious that we were dealing with purely local variables. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Fix bloated OTA imagefixgbAnton Gerasimov2018-11-271-1/+1
| | | | | | Curly braces are necessary around bitbake variables Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
* image_types_ota.bbclass: move a dependency inMing Liu2018-11-241-0/+2
| | | | | | | Move the dependency do_image_wic -> do_image_ota_ext4 from sota.bbclass to image_types_ota.bbclass, since it's a image specific dependency. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* image_types_ostree/ota.bbclass: refactor ostree taskMing Liu2018-11-241-49/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several flaws with ostree tasks, as follows: - ${IMAGE_NAME}.rootfs.ostree.tar.bz2 is generated, but it's not being used during ostree commit, so it should be removed if it's just a intermittent artifact. Or if we intend to deploy this tar.bz2 file, it should be tracked by sstate cache, that is to day, it should be generated in ${IMGDEPLOYDIR} rather than in ${DEPLOY_DIR_IMAGE}. - There are quite a few redundant code like mktemp/cd/rm a directory, which can be replaced by setting 'dirs', 'cleandirs' varflags. - There are some redundant variable check logic in image_types_ostree and image_types_ota bbclass. To fix the above, we make the following changes: - Introduce a new conversion image type 'tar', it could convert ostree and ota to ostree.tar, ota.tar, hence we can drop the code generating ostree.tar.bz2 in image_types_ostree.bbclass, and also drop the do_image_ota-tar task. To let this conversion type take effect, the otasetup task needs to be changed to ota. - Introduce BUILD_OSTREE_TARBALL variable, when being set to 1, a ostree.tar.bz2 tarball would be built, BUILD_OSTREE_TARBALL defaults to be 1, to be consistent with original behavior. - Replace 'ota-tar ota-tar.xz' with ota.tar.xz in IMAGE_FSTYPES. - Add a sanity check bbclass sota_sanity.bbclass, to ensure ostree or ota is not in OVERRIDES, this is to prevent potential naming pollution with other meta layers, and also check the required variables are not empty. This sota_sanity.bbclass is a common class that could be extended easily in furture, and one of its most advantages is that all the check are done in bb.event.SanityCheck event handler, so the end users could get the error message at very beginning of the recipe parsing time. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* meta: drop redundant export syntaxMing Liu2018-11-241-9/+1
| | | | | | | | | | | There are quite a few 'export' syntax, they are either not necessary or being redundant. Actually only the variables being referred in ostree or aktualizr need to be exported, we can move them into sota.bbclass so they can be exported once only for all other classes referring to them. And drop all other unnecessary exports. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* meta: replace bberror with bbfatalMing Liu2018-11-241-2/+2
| | | | | | | | | When calling bbfatal, it reports error message and exit 1, it should be used to replace of 'bberror && exit 1' to avoid being redundant. Also fixed some incorrect bberror usages and typos. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Provide example for setting UPTANE target version automaticallyAnton Gerasimov2018-10-301-0/+2
|
* image_types_ota: use IMGDEPLOYDIR for ota-ext4 imagesStefan Agner2018-10-181-6/+2
| | | | | | | | | | | Do not write directly to the IMAGE_DEPLOY_DIR but to the new deploy directory IMGDEPLOYDIR. Also change the image ending to match the image type name (from otaimg to ota-ext4). This allows to use the automatic symlinking and output artefact management too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* image_types_ota: use IMGDEPLOYDIR for ota-tar imagesStefan Agner2018-10-181-6/+1
| | | | | | | | Do not write directly to the IMAGE_DEPLOY_DIR but to the new deploy directory IMGDEPLOYDIR. This allows to use the automatic symlinking too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* image_types_ota: simplify image creationStefan Agner2018-10-121-28/+15
| | | | | | | | Almost all code in create_ota is either tar or ext4 specific. Move the code directly into the respective IMAGE_CMD_ functions. This gets rid of unnecessary work for the tar image and simplifies code. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* image_types_ota: remove explicit IMAGE_FSTYPES checkStefan Agner2018-10-121-9/+2
| | | | | | | OpenEmbedded makes sure that IMAGE_CMD_type gets only called if the type is in IMAGE_FSTYPE. There is no need to explicitly check for it. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* Update `installed_versions` passing to new locationLaurent Bonnans2018-09-181-2/+3
|
* Don't commit credentials to OSTree repositorybugfix/OTA-852/pushcredentialsAnton Gerasimov2018-09-121-3/+5
|
* Add support for building ota-tar.xz, and fixes from review commentsBen Clouser2018-07-101-7/+6
|
* Adding support for creating an otaimg.tar file in addition to the ext4 imageBen Clouser2018-06-291-76/+116
|
* Check for custom target version for installed_versionsRicardo Salveti2018-05-161-1/+5
| | | | | | | Make sure to use the custom target version when creating installed_versions if defined by the user. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* image_types_ota: make default grub.cfg a link to loader/grub.cfgRicardo Salveti2018-05-161-1/+1
| | | | | | | /boot/grub2/grub.cfg should reflect the grub.cfg used by the boot process instead of being an empty file. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* sota: introduce INITRAMFS_FSTYPESMing Liu2018-05-151-2/+0
| | | | | | | | | | | | | 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_ota.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>
* Fix permissions of /var/sota in image_types_otaPhil Wise2018-04-271-0/+2
| | | | We should also do this in the recipes
* Fix calculate_size in case $SIZE < $MINMatthias Andreas Benkard2018-03-071-1/+1
| | | calculate_size had a typo that made one of the cases fail. This patch fixes it.
* Merge branch 'pyro' into rockoAnton Gerasimov2018-01-261-0/+5
|\
| * Deploy initial primary version informationAnton Gerasimov2018-01-191-0/+5
| |
* | Merge branch 'pyro' into bugfix/update-rockoPatrick Vacek2018-01-171-2/+4
|\| | | | | | | Bring over fixes from the last couple months from pyro in rocko.
| * Deploy OSTree image without a branch nameAnton Gerasimov2017-12-071-2/+4
| |
* | Add fixes for compatibility with RockoAnton Gerasimov2017-11-171-1/+1
|/
* Preserve /var/localPhil Wise2017-06-221-2/+3
| | | | Fixes SPEC-761 in AGL
* Add uptane-capable aktualizrAnton Gerasimov2017-06-141-1/+1
|
* Merge pull request #72 from advancedtelematic/bugfix/PRO-3141/rpi-sdimgcajun-rat2017-05-261-0/+2
|\ | | | | Remove unneeded image types
| * Remove unneeded image typesAnton Gerasimov2017-05-261-0/+2
| |
* | Support Aktualizr in manual-provisioning modePhil Wise2017-05-241-0/+2
|/ | | | | | | | | Aktualizr currently supports OSTree updates in non-autoprovisioned mode. Add a systemd service to run it in that mode. It uses the same location for the config file as rvi-sota-client (/sysroot/boot/sota.toml) Also, the aktualizr recipe is reformatted according to meta-openembedded/contrib/oe-stylize.py (which follows the OE styleguide)
* Set u-boot as default bootloaderAnton Gerasimov2017-04-201-0/+2
|
* Fix a typo that prevents autoprovision credentials from being delpoyedOYTIS2017-04-191-1/+1
|
* Add configuration for grub-efi on MinnowboardAnton Gerasimov2017-04-111-1/+1
|
* Merge from meta-agl-extraAnton Gerasimov2017-04-031-28/+25
|
* Deploy credentials to physical sysroot's /bootAnton Gerasimov2016-12-231-0/+17
|
* Move u-boot to BSP layersAnton Gerasimov2016-12-211-0/+1
|
* Only build u-boot in otaimg for qemux86, otherwise it should be managedAnton Gerasimov2016-10-191-2/+5
| | | | | | | | | by live image recipe Bug-AGL: SPEC-296 Change-Id: Idbb00f33fd04b2a2d9fa8c615347f9b85d917d4a Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Added initramfs image and fixed several error to make AGL rootfsAnton Gerasimov2016-09-261-60/+88
| | | | | | | | | 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-3/+2
| | | | | | | Bug-AGL: SPEC-249 Change-Id: Ib5d725f203c0b0545b7c6b3196afb149ac8015c2 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Force u-boot (or another virtual/bootloader if overriden by user) toAnton Gerasimov2016-09-011-0/+1
| | | | | | | | | build with otaimg Bug-AGL: SPEC-236 Change-Id: I60f5b535467819cd03a591a12b725f2d7fc2cd31 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Replaced functionality in qemux86-ota machine with algsetup.sh feature. ↵Anton Gerasimov2016-08-191-8/+15
| | | | | | | | | otaimg is now a live image. Bug-AGL: SPEC-236 Change-Id: I5a56ffbdb098c1b4eb33fceeae32e28611b83fb7 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
* Add support for emulating OSTree updates in qemux86: new live image,Anton Gerasimov2016-08-161-0/+73
u-boot that can be used as BIOS, machine that uses both and fork of poky runqemu supporting the new live image. Bug-AGL: SPEC-236 Change-Id: Id99d122c05a00eb94902e8f6907455a1e681f2a3 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>