summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #736 from advancedtelematic/feat/secondary-aktualizr-infoPatrick Vacek2020-06-233-9/+9
|\ | | | | Put aktualizr-info in a separate package and use it in Secondaries.
| * Put aktualizr-info in a separate package and use it in Secondaries.feat/secondary-aktualizr-infoPatrick Vacek2020-06-233-9/+9
|/ | | | | | | | | We did the work a while ago to make aktualizr-info work for Secondaries, but until now we weren't putting the tool into the secondary-image we use for testing. Now it's there. Actually, it's in every image that inherits from sota.bbclass, which is probably a good thing. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #681 from liuming50/introduce-ostree-kernel-initramfsPatrick Vacek2020-06-224-26/+60
|\ | | | | Introduce ostree kernel initramfs
| * meta: introduce ostree-kernel-initramfs recipeMing Liu2020-06-184-26/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We package kernel image, devicetrees, initramfs and install them to /usr/lib/modules/${KERNEL_VERSION}, which is the preferred location according to ostree's new implementation, this could simplify the deployment. Reference: https://github.com/ostreedev/ostree/commit/3ab0d5e6644885440bac6abd17b6d2637df5435f To let initramfs-ostree-image be able to be depended by ostree-kernel-initramfs, it must inherit nopackages to avoid a annoying QA warning like the follows: | WARNING: initramfs-ostree-image-0.0.1-r0 do_package: Manifest ...initramfs-ostree-image.packagedata | not found in colibri_imx6 armv7ahf-neon-imx armv7at2hf-neon-imx armv7at2hf-neon armv7ahf-neon armv7at2hf-vfp | armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv5ehf-vfp armv5thf-vfp armv5hf-vfp allarch | x86_64_x86_64-nativesdk (variant '')? Also we need define OSTREE_KERNEL, OSTREE_DEPLOY_DEVICETREE and OSTREE_DEVICETREE in sota.bbclass so they could be accessed in other recipes as well as in image recipes. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Ming Liu <ming.liu@toradex.com>
* | Merge pull request #722 from liuming50/fix-network-configuration-namingPatrick Vacek2020-06-2212-15/+15
|\ \ | |/ |/| meta: change virtual/network-configuration to network-configuration
| * meta: change virtual/network-configuration to network-configurationMing Liu2020-05-1012-15/+15
| | | | | | | | | | | | | | | | | | | | The name 'virtual' is a recipe specific concept but not a package specific one, it's confusing that a package provides 'virtual/' names. Let's drop 'virtual/' from network-configuration, to keep consistent with yocto naming styles. Signed-off-by: Ming Liu <ming.liu@toradex.com>
* | Merge pull request #734 from agners/use-boot-completePatrick Vacek2020-06-181-1/+2
|\ \ | | | | | | aktualizr: make use of boot-complete.target
| * | aktualizr: make use of boot-complete.targetStefan Agner2020-06-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the systemd.special(7) man page section boot-complete.target: This target is intended as generic synchronization point for services that shall determine or act on whether the boot process completed successfully. Let's make use of the target. Since aktualizr by default marks a boot as successful, we consider aktualizr.service a service which needs to be executed on successful boot (hence after the boot-complete.target). This allows to declare a service as crucial by simply ordering it before the boot-complete.target. The systemd example service systemd-boot-check-no-failures.service can serve as an example. This change does not add any service dependency by default as boot-complete.target by default does not has any extra dependencies. Note that rebooting in the failure case is not handled by this mechanism. This can be added by using FailureAction. Boot assessement infrastructure got introduced with systemd 240. See also: https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/ Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | | Merge pull request #735 from advancedtelematic/test/OTA-4838/mem-binary-updatelbonn2020-06-182-0/+23
|\ \ \ | |/ / |/| | Add recipe to build images with binary primaries
| * | Add recipe to build images with binary primariestest/OTA-4838/mem-binary-updateLaurent Bonnans2020-06-182-0/+23
|/ / | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* | Merge pull request #728 from antznin/allow-specifying-dtb-namePatrick Vacek2020-06-031-3/+4
|\ \ | | | | | | image_types_ostree: allow specifying a device tree to deploy
| * | image_types_ostree: allow specifying a device tree to deployantznin2020-05-291-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When setting `OSTREE_DEPLOY_DEVICETREE` to 1, it will by default deploy all the device tree blobs present in `KERNEL_DEVICETREE`. Adding `OSTREE_DEVICETREE` would allow specifying a specific device tree blob (or several dtbs), thus resulting in only the specified ones in the image. This is particularely useful because ostree selects the first device tree it finds in /boot, and discards the remaining ones. Signed-off-by: antznin <agodard@witekio.com>
* | | Merge pull request #729 from advancedtelematic/rls/2020.7lbonn2020-05-292-5/+5
|\ \ \ | |/ / |/| | Bump aktualizr to 2020.7 revision
| * | Update garage-push invocation for new clirls/2020.7Laurent Bonnans2020-05-291-1/+1
| | | | | | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * | Bump aktualizr to 2020.7 revisionLaurent Bonnans2020-05-291-4/+4
|/ / | | | | | | | | | | And garage-sign to 0.7.1-4 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* | Merge pull request #727 from agners/allow-extra-ostree-commit-argsPatrick Vacek2020-05-271-1/+2
|\ \ | | | | | | image_types_ostree: allow to add layer specific OSTree commit arguments
| * | image_types_ostree: allow to add layer specific OSTree commit argumentsStefan Agner2020-05-261-1/+2
|/ / | | | | | | | | | | | | | | | | | | The OSTree commit command allows to add metadata to the commit. This might be customized in a distro layer for distribution specific needs. Allow to pass extra arguments using EXTRA_OSTREE_COMMIT variable (using a variable named similar to EXTRA_OEMAKE used to pass extra make arguments). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | Merge pull request #726 from advancedtelematic/fix/boost-1.73lbonn2020-05-252-60/+0
|\ \
| * | Remove boost 1.72 bbappendfix/boost-1.73Laurent Bonnans2020-05-252-60/+0
|/ / | | | | | | | | | | poky switched to 1.73 which includes this patch Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* | Merge pull request #725 from advancedtelematic/feat/collectdlbonn2020-05-183-0/+35
|\ \
| * | Adding collectd coniguration for aktualizrfeat/collectdLaurent Bonnans2020-05-133-0/+35
|/ / | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* | Merge pull request #716 from agners/master-ostree-fix-deployment-refPatrick Vacek2020-05-122-14/+18
|\ \ | | | | | | Use checksum as deployment source and refspec in the deployment
| * | image_types_ota: use named referenceStefan Agner2020-05-071-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use named reference when deploying the device tree. This makes sure that this reference will end up in the deployments .origin file, which will be visible by the user in ostree admin status. This reference will also be used when running ostree admin upgrade. This is not really required when using aktualizr, but can be useful during test/debugging when using pure OSTree updates. Make sure to make ${OSTREE_REPO} accessible via http and add a remote on the device called ${OSTREE_OSNAME} pointing to the http exposed archive OSTree. With that ostree admin upgrade should work. Note: We could use the name reference in ostree pull-local already, but this is potentially racy if multiple builds are committing to the same branch. Use the OSTree commit hash to get the actual commit and recreate a local reference to this commit. This makes absolutely sure that we use the same OSTree commit this bitbake execution committed during the do_image_ostreecommit task. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * | image_types_ostree/ota: use hash from ostree commitStefan Agner2020-05-072-13/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relying on a OSTree branch reference has been problematic in the past and addressed by adding more attributes to it in commit 202a8c70ba8c ("image_types_ostree: Add a unique ref to fix simultaneous bitbaking."). However, depening on what kind of OpenEmbedded builds are running in parallel, even more attributes would need to be taken into account. Instead of relying on a reference, store the exact ostree commit hash in a manifest file and reuse it in the do_image_ota deploy task. This guarantees that the correct reference gets picked even when two builds with the exact same machine/image name run in parallel. Note: This gets rid of the second branch name again. If the branch name with image name is preferred, the variable OSTREE_BRANCHNAME can be used: OSTREE_BRANCHNAME = "${SOTA_HARDWARE_ID}-${IMAGE_BASENAME}" Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | Merge pull request #723 from liuming50/drop-qemuboot-from-initramfs-ostree-imagePatrick Vacek2020-05-121-1/+1
|\ \ | | | | | | initramfs-ostree-image: drop qemuboot from IMAGE_CLASSES
| * | initramfs-ostree-image: drop qemuboot from IMAGE_CLASSESMing Liu2020-05-111-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>
* | Merge pull request #724 from liuming50/fix-an-incomplete-sanity-checkingPatrick Vacek2020-05-124-13/+20
|\ \ | |/ |/| sota_sanity.bbclass: introduce sota_check_boolean_variable
| * sota_sanity.bbclass: introduce sota_check_boolean_variableMing Liu2020-05-114-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>
* Merge pull request #713 from agners/master-ostree-improvementsPatrick Vacek2020-05-052-22/+31
|\ | | | | OSTree task improvements
| * image_types_ostree/ota: move home physically to /var/rootdirs/homeStefan Agner2020-04-272-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using the double indirection mode /home -> /var/rootdirs/home -> /sysroot/home move the home directory physically into /var/rootdirs. This allows to use the --modern flag when initializing the file system. The "old" style is still supported, and does make sense in case the home directories need to be shared between multiple deployments. Since multiple deployments is not a use case in meta-updater use the /var approach. See also: https://github.com/ostreedev/ostree/issues/2085. The modern flag also gets rid of dev, proc, root, run, sys and tmp. All of them have been empty and unused. Note: This change cannot be pushed through updates as this is an initial deployment setting. Only devices provisioned with images built with this change applied will use the new layout. Updates will continue to work on both systems as the symlink from the deployment stays the same (first indirection is still /home -> /var/rootdirs/home). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * image_types_ostree/ota: do not commit homes to the OSTreeStefan Agner2020-04-272-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-04-271-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-04-271-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-04-271-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 #717 from advancedtelematic/feat/2020.6Patrick Vacek2020-04-301-4/+4
|\ \ | | | | | | aktualizr: Update to 2020.6 release and garage-sign 0.7.1.
| * | aktualizr: Update to 2020.6 release and garage-sign 0.7.1.feat/2020.6Patrick Vacek2020-04-301-4/+4
|/ / | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | Merge pull request #714 from liuming50/fix-a-aktualizr-dependency-issuePatrick Vacek2020-04-281-1/+1
|\ \ | | | | | | aktualizr: fix a dependency QA warning
| * | aktualizr: fix a dependency QA warningMing Liu2020-04-271-1/+1
|/ / | | | | | | | | | | | | | | | | This fixes a following QA warning: | WARNING: aktualizr do_package_qa: QA Issue: aktualizr rdepends on | u-boot-fw-utils, but it isn't a build dependency, missing | u-boot-fw-utils in DEPENDS or PACKAGECONFIG? [build-deps] Signed-off-by: Ming Liu <ming.liu@toradex.com>
* | Merge pull request #712 from advancedtelematic/feat/track-network-usagePatrick Vacek2020-04-221-0/+1
|\ \ | | | | | | aktualizr: Use systemd IP accounting.
| * | aktualizr: Use systemd IP accounting.feat/track-network-usagePatrick Vacek2020-04-221-0/+1
|/ / | | | | | | | | | | | | This allows you to see how much bandwidth was used with `systemd status aktualizr`. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | Merge pull request #711 from advancedtelematic/fix/ptest-skip-ip-secondaryPatrick Vacek2020-04-091-1/+1
|\ \ | |/ |/| aktualizr: Update to latest for ptest fix.
| * aktualizr: Update to latest for ptest fix.fix/ptest-skip-ip-secondaryPatrick Vacek2020-04-081-1/+1
|/ | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #710 from advancedtelematic/fix/envsetup-zshlbonn2020-04-031-10/+22
|\ | | | | Fix envsetup when run in zsh
| * Fix envsetup when run in zshfix/envsetup-zshLaurent Bonnans2020-04-031-10/+22
|/ | | | | | Now also works with zsh < 5.5 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #705 from advancedtelematic/feat/tuf-cli-aws-bucketPatrick Vacek2020-04-021-5/+5
|\ | | | | aktualizr: Get garage-sign from the new AWS bucket.
| * aktualizr: Bump to latest and get garage-sign from the new AWS bucket.feat/tuf-cli-aws-bucketPatrick 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 #704 from shr-project/jansa/dunfellPatrick Vacek2020-03-251-1/+1
|\ | | | | layer.conf: update LAYERSERIES_COMPAT for dunfell
| * layer.conf: update LAYERSERIES_COMPAT for dunfellMartin Jansa2020-03-251-1/+1
| | | | | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* | Merge pull request #699 from advancedtelematic/feat/2020.4Patrick Vacek2020-03-252-6/+6
|\ \ | |/ |/| aktualizr: Bump to latest along with garage-sign.
| * Fix oe-selftest log message casefeat/2020.4Laurent Bonnans2020-03-251-2/+2
| | | | | | | | | | | | Was changed recently Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>