<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-updater.git/classes, branch fix/boost-1.73</title>
<subtitle>Mirror of github.com/advancedtelematic/meta-updater</subtitle>
<id>https://git.enea.com/cgit/linux/meta-updater.git/atom?h=fix%2Fboost-1.73</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-updater.git/atom?h=fix%2Fboost-1.73'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/'/>
<updated>2020-05-12T15:16:39+00:00</updated>
<entry>
<title>Merge pull request #716 from agners/master-ostree-fix-deployment-ref</title>
<updated>2020-05-12T15:16:39+00:00</updated>
<author>
<name>Patrick Vacek</name>
<email>patrickvacek@gmail.com</email>
</author>
<published>2020-05-12T15:16:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=87111ac809aae86598ac7d013be9b572fbad8d7e'/>
<id>urn:sha1:87111ac809aae86598ac7d013be9b572fbad8d7e</id>
<content type='text'>
Use checksum as deployment source and refspec in the deployment</content>
</entry>
<entry>
<title>sota_sanity.bbclass: introduce sota_check_boolean_variable</title>
<updated>2020-05-11T17:53:55+00:00</updated>
<author>
<name>Ming Liu</name>
<email>ming.liu@toradex.com</email>
</author>
<published>2020-05-11T17:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=a7189aae28cf3181daebc89c0bc609f4ef8ea5fb'/>
<id>urn:sha1:a7189aae28cf3181daebc89c0bc609f4ef8ea5fb</id>
<content type='text'>
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 &lt;ming.liu@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_types_ota: use named reference</title>
<updated>2020-05-07T21:06:55+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2020-04-28T18:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=48c0442f926940346e2d4fa693c49cb7419917bf'/>
<id>urn:sha1:48c0442f926940346e2d4fa693c49cb7419917bf</id>
<content type='text'>
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 &lt;stefan.agner@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_types_ostree/ota: use hash from ostree commit</title>
<updated>2020-05-07T21:06:55+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2020-04-28T16:28:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=fcc397f16efde0c053c8a96e7500147ab84cb8d3'/>
<id>urn:sha1:fcc397f16efde0c053c8a96e7500147ab84cb8d3</id>
<content type='text'>
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 &lt;stefan.agner@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_types_ostree/ota: move home physically to /var/rootdirs/home</title>
<updated>2020-04-27T07:42:22+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2020-04-25T23:36:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=fb058bb8eedd9a3a168fa87534f55d1ea610a90a'/>
<id>urn:sha1:fb058bb8eedd9a3a168fa87534f55d1ea610a90a</id>
<content type='text'>
Instead of using the double indirection mode /home -&gt; /var/rootdirs/home
-&gt; /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 -&gt; /var/rootdirs/home).

Signed-off-by: Stefan Agner &lt;stefan.agner@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_types_ostree/ota: do not commit homes to the OSTree</title>
<updated>2020-04-27T07:42:22+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2020-04-25T22:22:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=cd153180c359fefb95d57968b8a4fa0471b588c0'/>
<id>urn:sha1:cd153180c359fefb95d57968b8a4fa0471b588c0</id>
<content type='text'>
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 &lt;stefan.agner@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_types_ostree: use hardlink tree</title>
<updated>2020-04-27T07:42:22+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2020-04-25T22:15:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=c60b6bb82e7121635ce3f7119927e8704fe03f0f'/>
<id>urn:sha1:c60b6bb82e7121635ce3f7119927e8704fe03f0f</id>
<content type='text'>
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 &lt;stefan.agner@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_types_ostree: drop unnecessary tmp handling</title>
<updated>2020-04-27T07:42:22+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2020-04-26T14:55:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=34b1e543c91cfb89c29687c799ac941085d83307'/>
<id>urn:sha1:34b1e543c91cfb89c29687c799ac941085d83307</id>
<content type='text'>
The current code clears tmp and then creates a symlink inside it to
/sysroot/tmp:
tmp
└── tmp -&gt; 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 &lt;stefan.agner@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_types_ota: export OSTREE_BOOT_PARTITION when needed</title>
<updated>2020-04-27T07:42:22+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2020-04-26T13:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=88bbedb26e24ec313d7809592e91f351b0f346d5'/>
<id>urn:sha1:88bbedb26e24ec313d7809592e91f351b0f346d5</id>
<content type='text'>
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 &lt;stefan.agner@toradex.com&gt;
</content>
</entry>
<entry>
<title>Rename defconfig and bootfiles</title>
<updated>2020-03-04T14:17:49+00:00</updated>
<author>
<name>Minori Yasumura</name>
<email>minori@witz-inc.co.jp</email>
</author>
<published>2020-02-11T07:32:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=cb2f7ef9f48e588fc5c7c572143eb9f78e5affaa'/>
<id>urn:sha1:cb2f7ef9f48e588fc5c7c572143eb9f78e5affaa</id>
<content type='text'>
The file name of sota has been changed in AGL, so change it to apply.

Signed-off-by: Minori Yasumura &lt;minori@witz-inc.co.jp&gt;
</content>
</entry>
</feed>
