summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* initramfs-ostree-image: drop qemuboot from IMAGE_CLASSESMing Liu2020-06-021-1/+1
| | | | | | | To avoid generating a qemuboot.conf for qemu machines, it's useless for a initramfs image. Signed-off-by: Ming Liu <ming.liu@toradex.com>
* sota_sanity.bbclass: introduce sota_check_boolean_variableMing Liu2020-06-024-13/+20
| | | | | | | | | | The current sanity check are too strict for some boolean variables, introduce sota_check_boolean_variable to allow a boolean value to be set like yes/y/true/t/1 or no/n/false/f/0. Also change to use oe.types.boolean to check their values. Signed-off-by: Ming Liu <ming.liu@toradex.com>
* image_types_ostree/ota: do not commit homes to the OSTreeStefan Agner2020-06-022-9/+7
| | | | | | | | | | | | | | The home directory currently are commited to the OSTree, presumably to then use it for the deployment. However, we do have access to the original rootfs in the OSTree deployment tasks (do_image_ota) hence transferring the files "via OSTree" is not necessary. We do already carry over some files from the original OE rootfs to /var/sota. Follow this approach for /var/local and /home as well. The home will still be stored in the sysroot as documented in https://ostree.readthedocs.io/en/latest/manual/adapting-existing/. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* image_types_ostree: use hardlink treeStefan Agner2020-06-021-5/+15
| | | | | | | | | | | Instead of copying the files to be commited to the ostree just use a hardlink tree. This improves performance and wasts less diskspace. When using this method the root directory has already the correct permission bits set. Also get rid of the unnecessary sync. This halfs the execution time of the do_image_ostree tasks in my measurments. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* image_types_ostree: drop unnecessary tmp handlingStefan Agner2020-06-021-3/+0
| | | | | | | | | | | | | The current code clears tmp and then creates a symlink inside it to /sysroot/tmp: tmp └── tmp -> sysroot/tmp This is likely a mistake and the root tmp should have pointed to sysroot/tmp. However, since /tmp is mounted as a tmpfs anyways, we can get rid of all this logic. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* image_types_ota: export OSTREE_BOOT_PARTITION when neededStefan Agner2020-06-021-2/+5
| | | | | | | | The environment variable OSTREE_BOOT_PARTITION is only used when using GRUB. Move the export into the if statement. Also add a comment why manually adding /boot/loader{.0} directory is necessary. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* Merge pull request #720 from advancedtelematic/feat/warrior/2020.6Patrick Vacek2020-05-053-14/+27
|\ | | | | Feat/warrior/2020.6
| * aktualizr: Update to 2020.6 release and garage-sign 0.7.1.feat/warrior/2020.6Patrick Vacek2020-04-301-4/+4
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: Use systemd IP accounting.Patrick Vacek2020-04-291-0/+1
| | | | | | | | | | | | | | This allows you to see how much bandwidth was used with `systemd status aktualizr`. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Fix envsetup when run in zshLaurent Bonnans2020-04-291-10/+22
|/ | | | | | Now also works with zsh < 5.5 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #708 from advancedtelematic/feat/warrior/2020.5Patrick Vacek2020-04-021-5/+5
|\ | | | | aktualizr: Bump to 2020.5 and get garage-sign from the new AWS bucket.
| * aktualizr: Bump to 2020.5 and get garage-sign from the new AWS bucket.feat/warrior/2020.5Patrick Vacek2020-04-021-5/+5
|/ | | | | | | Also bump the garage-sign version. New version includes fixes for supporting targets > 2 GB. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #701 from advancedtelematic/feat/warrior/2020.4Patrick Vacek2020-03-266-14/+17
|\ | | | | Feat/warrior/2020.4
| * Fix oe-selftest log message casefeat/warrior/2020.4Laurent Bonnans2020-03-251-2/+2
| | | | | | | | | | | | Was changed recently Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * aktualizr: Bump to 2020.4 and latest garage-sign.Patrick Vacek2020-03-241-4/+4
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * fix: run aktualizr service after network is onlineMykhaylo Sul2020-03-242-2/+4
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * Properly track SOTA_SECONDARY_CONFIG dependencyLaurent Bonnans2020-03-241-0/+1
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Fix aktualizr-ptest shlib yocto errorsLaurent Bonnans2020-03-241-0/+2
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Rename defconfig and bootfilesMinori Yasumura2020-03-241-3/+4
| | | | | | | | | | | | The file name of sota has been changed in AGL, so change it to apply. Signed-off-by: Minori Yasumura <minori@witz-inc.co.jp>
| * aktualizr: remove unnecessary rm.Patrick Vacek2020-03-241-3/+0
|/ | | | | | | libuptiny (the "partial" subdirectory) and its dependencies were removed from the aktualizr repo a while ago. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #692 from advancedtelematic/feat/warrior/2020.3Patrick Vacek2020-03-0320-31/+76
|\ | | | | Feat/warrior/2020.3
| * aktualizr: Update to 2020.3 release.feat/warrior/2020.3Patrick Vacek2020-02-281-4/+4
| | | | | | | | | | | | Update garage-sign to the latest as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * oe-selftest.sh: This also now requires setting git identity.Patrick Vacek2020-02-281-0/+4
| | | | | | | | | | | | Not sure why this only started cropping up now. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * sota_bleeding: Also set aktualizr-native to the latest.Patrick Vacek2020-02-281-0/+1
| | | | | | | | | | | | I'm a bit surprised we never noticed this was missing! Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Update aktualizr recipe to use new .so namesLaurent Bonnans2020-02-281-7/+7
| | | | | | | | | | | | Aktualizr and garage-sign are also bumped in the process. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * image_types_ostree: update doc link.Patrick Vacek2020-02-281-2/+2
| | | | | | | | | | | | | | Most of the README content has been moved to the docs portal, so provide the direct link. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * test: shared cred provisioning for non-ostree caseKostiantyn Bushko2020-02-283-0/+28
| | | | | | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
| * fix: make secondaries' network less intrusiveMykhaylo Sul2020-02-284-6/+6
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * Remove a debug print in qemucommand.pyLaurent Bonnans2020-02-281-1/+0
| | | | | | | | | | | | Was missed during review Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Get the second IP from DHCP to access InetMykhaylo Sul2020-02-281-1/+1
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * OTA-4388: Conf variable to specify an update type for secondaryMykhaylo Sul2020-02-283-5/+21
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * image_types_ostree: set version metadata fieldStefan Agner2020-02-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | OSTree uses the "version" metadata field in various places, e.g. in ostree admin status. Use DISTRO_VERSION as default version number source. This gives a more human readable version number to a particular OSTree: $ ostree admin status * torizon f1825d8a8f89c48cc0915ea059bd23463a97655757a53ae0ab0fe7a97e1ebeb2.0 Version: 3.0+snapshot-20200128 origin refspec: f1825d8a8f89c48cc0915ea059bd23463a97655757a53ae0ab0fe7a97e1ebeb Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * meta: move HOSTTOOLS definitions to sota.conf.incMing Liu2020-02-284-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HOSTTOOLS and HOSTTOOLS_NONFATAL are global variables that being handled in base_eventhandler, so they must be defined in config files or in INHERIT classes or classes being inherited by base.bbclass, or else we might run into the following problems: ``` $ bitbake pkgname $ bitbake imgname ``` the HOSTTOOLS and HOSTTOOLS_NONFATAL in the above image recipe, for instance, 'repo python' in image_repo_manifest.bbclass, they would not be copied to HOSTTOOLS_DIR. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * initramfs-ostree-image: drop image_repo_manifest from IMAGE_CLASSESMing Liu2020-02-281-2/+2
|/ | | | | | | | We should remove image_repo_manifest from IMAGE_CLASSES instead of dropping buildinfo_manifest from IMAGE_PREPROCESS_COMMAND, which would ensure the entire class not to be inherited. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Merge pull request #672 from advancedtelematic/feat/warrior/2020.2Patrick Vacek2020-02-076-24/+67
|\ | | | | Feat/warrior/2020.2
| * Bump a new aktualizr versionfeat/warrior/2020.2Mykhaylo Sul2020-01-301-1/+1
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * Fix default uboot-enable variable in qemu command scriptKostiantyn Bushko2020-01-302-2/+2
| | | | | | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
| * aktualizr: Remove unused hmi-stub and examples package.Patrick Vacek2020-01-301-5/+1
| | | | | | | | | | | | | | | | hmi-stub was replaced by libaktualizr-demo-app and is no longer part of this recipe. That leaves the aktualizr-examples package empty, so just get rid of it. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * build and run image without ostree support for qemux86-64Kostiantyn Bushko2020-01-304-17/+64
| | | | | | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
| * aktualizr: relies on nss-lookup.targetMing Liu2020-01-301-1/+1
|/ | | | | | | aktualizr.service needs run after nss-lookup.target to ensure DNS resolving is ready. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Merge pull request #664 from advancedtelematic/feat/warrior/2020.1Patrick Vacek2020-01-2311-19/+68
|\ | | | | Feat/warrior/2020.1
| * aktualizr: Bump to latest.feat/warrior/2020.1Patrick Vacek2020-01-201-4/+4
| | | | | | | | | | | | Bump garage-sign as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * OTA-4174: Make an ostree update a default on IP SecondaryMykhaylo Sul2020-01-204-6/+6
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * zabbix-agent: configuration recipeKostiantyn Bushko2020-01-151-0/+20
| | | | | | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
| * fix issue with attr error for host_forwardKostiantyn Bushko2020-01-151-1/+1
| | | | | | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
| * run-qemu-ota: passing hostfwd as command line argumentKostiantyn Bushko2020-01-152-0/+15
| | | | | | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
| * Adapt to shared libraries changes in aktualizrLaurent Bonnans2020-01-151-3/+17
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * README: bump copyright to 2020.Patrick Vacek2020-01-151-1/+1
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Allow dots in ostree branch names and hw idsLaurent Bonnans2020-01-151-4/+4
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * meta: add python to HOSTTOOLS_NONFATALMing Liu2020-01-152-3/+3
|/ | | | | | | | | | repo is requiring python to be able to work correctly, add python to HOSTTOOLS_NONFATAL as well. image_repo_manifest is actually a image bbclass, move it to IMAGE_CLASSES instead of inheriting it in sota.bbclass. Signed-off-by: Ming Liu <liu.ming50@gmail.com>