| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
Feat/thud/2020.6
|
| |
| |
| |
| | |
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
This allows you to see how much bandwidth was used with `systemd status
aktualizr`.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|/
|
|
|
|
| |
Now also works with zsh < 5.5
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
|
|\
| |
| | |
aktualizr: Bump to 2020.5 and get garage-sign from the new AWS bucket.
|
|/
|
|
|
|
|
| |
Also bump the garage-sign version. New version includes fixes for
supporting targets > 2 GB.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|\
| |
| | |
Feat/thud/2020.4
|
| |
| |
| |
| |
| |
| | |
Was changed recently
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
|
| |
| |
| |
| | |
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
|
| |
| |
| |
| | |
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
|
| |
| |
| |
| | |
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
|
|/
|
|
|
|
|
| |
libuptiny (the "partial" subdirectory) and its dependencies were removed
from the aktualizr repo a while ago.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|\
| |
| | |
Feat/thud/2020.3
|
| |
| |
| |
| |
| |
| | |
Update garage-sign to the latest as well.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
This seems mostly related to 9eebc8d15a297d68fc35dd4d77fcb945d2f395b2,
which didn't make it to thud, since some of it was only required for
master.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Not sure why this only started cropping up now.
Also pull in some other missing bits from other upstream changes.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| |
| |
| | |
I'm a bit surprised we never noticed this was missing!
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| |
| |
| | |
Aktualizr and garage-sign are also bumped in the process.
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
|
| |
| |
| |
| | |
Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
|
| |
| |
| |
| |
| |
| | |
Was missed during review
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
|
| |
| |
| |
| | |
Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
|
| |
| |
| |
| | |
Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
Rename defconfig and bootfiles
|
|/
|
|
|
|
| |
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>
|
|\
| |
| | |
connman: Only apply our patch to 1.35.
|
|/
|
|
|
|
| |
Also still set RPROVIDES for all other versions.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|\
| |
| | |
Feat/thud/2020.2
|
| |
| |
| |
| | |
Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
|
| |
| |
| |
| | |
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
|
|/
|
|
|
|
|
| |
aktualizr.service needs run after nss-lookup.target to ensure DNS
resolving is ready.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
|\
| |
| | |
Feat/thud/2020.1
|
| |
| |
| |
| |
| |
| | |
Bump garage-sign as well.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
|