<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-updater.git/classes, branch feat/Return-python2-dockerfile</title>
<subtitle>Mirror of github.com/advancedtelematic/meta-updater</subtitle>
<id>https://git.enea.com/cgit/linux/meta-updater.git/atom?h=feat%2FReturn-python2-dockerfile</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-updater.git/atom?h=feat%2FReturn-python2-dockerfile'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/'/>
<updated>2021-07-01T05:26:12+00:00</updated>
<entry>
<title>Merge pull request #810 from liuming50/drop-prepare_ostree_rootfs-prefunc</title>
<updated>2021-07-01T05:26:12+00:00</updated>
<author>
<name>Patti Vacek</name>
<email>pattivacek@gmail.com</email>
</author>
<published>2021-07-01T05:26:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=68af8d437163c0658b79137fc33f0df1b269d3e5'/>
<id>urn:sha1:68af8d437163c0658b79137fc33f0df1b269d3e5</id>
<content type='text'>
image_types_ostree.bbclass: drop prepare_ostree_rootfs prefunc</content>
</entry>
<entry>
<title>meta: support readonly sysroot</title>
<updated>2021-06-30T11:53:39+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2021-06-30T09:57:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=6e24e397347b0d14652793fea3dcf95438442ed8'/>
<id>urn:sha1:6e24e397347b0d14652793fea3dcf95438442ed8</id>
<content type='text'>
Currently ostree sysroot is being mounted as RW by ostree-remount
systemd service, add a variable OSTREE_SYSROOT_READONLY to control
that, so the end users could choose to mount sysroot as RO.

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
</content>
</entry>
<entry>
<title>image_types_ostree.bbclass: drop prepare_ostree_rootfs prefunc</title>
<updated>2021-06-19T12:59:43+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2021-06-19T11:01:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=bc8f39fd0dc420feb467ab52acdfde068a36f54f'/>
<id>urn:sha1:bc8f39fd0dc420feb467ab52acdfde068a36f54f</id>
<content type='text'>
The purpose of prepare_ostree_rootfs prefunc is to ensure
do_image_rootfs runs from a clean ${OSTREE_ROOTFS} and call
oe.path.copyhardlinktree from ${IMAGE_ROOTFS} to ${OSTREE_ROOTFS}.

We dont have to maintain a prefunc to achieve that, it could be easily
done in do_image_ostree itself.

But the major reason for this change is to avoid hard links from
${IMAGE_ROOTFS} to ${OSTREE_ROOTFS}, which might lead to a Pseudo
abortion in some cases, which was observed when IMA/EVM is enabled
in rootfs.

There was a commit aiming to fix the Pseudo abortion, commit db099053:
[ image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_rootfs ]

but it's incomplete per later tests, there is still the case some old
inodes being used in ${IMAGE_ROOTFS} when do_rootfs runs, which causes
'rm -rf ${IMAGE_ROOTFS}' fail on a Pseudo abortion error.

This fixes the Pseudo abortion completely.

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
</content>
</entry>
<entry>
<title>image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_rootfs</title>
<updated>2021-04-08T18:51:28+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2021-04-08T18:51:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=db099053690a61d021778945a9a62732c427a9b2'/>
<id>urn:sha1:db099053690a61d021778945a9a62732c427a9b2</id>
<content type='text'>
Since the ostree rootfs is generated by fakeroot, we should make
prepare_ostree_rootfs run with fakeroot as well, or else we might run
into a pseudo abort issue when removing OSTREE_ROOTFS directory.

Reference:
https://wiki.yoctoproject.org/wiki/Pseudo_Abort

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #796 from ricardosalveti/master</title>
<updated>2021-01-29T15:09:03+00:00</updated>
<author>
<name>Patti Vacek</name>
<email>pattivacek@gmail.com</email>
</author>
<published>2021-01-29T15:09:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=c8327e1bc05624b36192204f1bba7eb2e05409f2'/>
<id>urn:sha1:c8327e1bc05624b36192204f1bba7eb2e05409f2</id>
<content type='text'>
image_types_ota.bbclass: use standard ext4 features</content>
</entry>
<entry>
<title>Merge pull request #797 from liuming50/fix-race-problems-of-ostreecommit-ota-tasks</title>
<updated>2021-01-29T15:08:11+00:00</updated>
<author>
<name>Patti Vacek</name>
<email>pattivacek@gmail.com</email>
</author>
<published>2021-01-29T15:08:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=0e753b01b1ceda9987610c2877f8e9543ec9ce5e'/>
<id>urn:sha1:0e753b01b1ceda9987610c2877f8e9543ec9ce5e</id>
<content type='text'>
image_types_ota.bbclass: get lock before accessing OSTREE_REPO</content>
</entry>
<entry>
<title>image_types_ostree.bbclass: get lock before accessing OSTREE_REPO</title>
<updated>2021-01-28T17:50:40+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2021-01-18T11:47:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=d3a832f66e8802cb45536ff278d5c77f946d341d'/>
<id>urn:sha1:d3a832f66e8802cb45536ff278d5c77f946d341d</id>
<content type='text'>
In commit d13ec585ae677affd88b9d92c6ea135cc249b2fa:
[ image_types_ostree: use OSTree repo location for lockfiles ]

A lockfile ${OSTREE_REPO}/ostree.lock was added to prevent concurrent
access to the repository by multiple bitbake instances, but it should
not only apply to ostreecommit task, but ostreepush task also need it.

This fixes a following race condition error:
| | ERROR: Execution of '.../temp/run.do_image_ostreecommit.34262' failed with exit code 1:
| error: Writing content object: Creating temp file: No such file or directory

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
</content>
</entry>
<entry>
<title>image_repo_manifest.bbclass: Improvement for builds outside the .repo directory</title>
<updated>2021-01-19T16:54:55+00:00</updated>
<author>
<name>Dominik Wild</name>
<email>dominik.wild@glutz.com</email>
</author>
<published>2021-01-19T16:43:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=41ff3f9e558d2abf619c3584c59c36c0735d3288'/>
<id>urn:sha1:41ff3f9e558d2abf619c3584c59c36c0735d3288</id>
<content type='text'>
The repo tool searches up the directory tree to find the .repo directory,
which doesn't work in a separated build directory.

Signed-off-by: Dominik Wild &lt;dominik.wild@glutz.com&gt;
</content>
</entry>
<entry>
<title>image_types_ota.bbclass: use standard ext4 features</title>
<updated>2021-01-12T01:37:28+00:00</updated>
<author>
<name>Ricardo Salveti</name>
<email>ricardo@foundries.io</email>
</author>
<published>2021-01-12T01:26:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=910243aec359e5d9d2a96611a210571aaefaedce'/>
<id>urn:sha1:910243aec359e5d9d2a96611a210571aaefaedce</id>
<content type='text'>
Avoid removing 64bit and metadata_csum by default and prefer the
standard ext4 features instead.

64bit enables the file system to be larger than 2^32 blocks and
metadata_csum enables metadata checksumming, both of which are
enabled by default on recent mke2fs releases.

It is unclear why 64bit was disabled by looking at the git history, but
my assumption would be that either kernel or userspace was old enough
for this feature to not be supported/available. Since this option is
currently used by most distros by default, it should now be safe to
enable it (requires kernel &gt;= 2.6.28).

metadata_csum was disabled in 4d34fa53db to make the u-boot tooling work
with the ext4 file system (when saving environment), but the correct fix
should instead be a fix at the userspace tooling instead, since not
every target requires u-boot.

Signed-off-by: Ricardo Salveti &lt;ricardo@foundries.io&gt;
</content>
</entry>
<entry>
<title>image_types_ota.bbclass: pass -t ext4 to mke2fs</title>
<updated>2021-01-03T07:39:15+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@lge.com</email>
</author>
<published>2020-12-29T15:19:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=3e717a07aa5c36be48665d50a4db64ee4461d3e1'/>
<id>urn:sha1:3e717a07aa5c36be48665d50a4db64ee4461d3e1</id>
<content type='text'>
* it doesn't automatically pass "-t ext4", because here we're calling
  mke2fs as mkfs.ota-ext4 instead of mkfs.ext4

  so the resulting was now ext2 instead of ext4
  $ file image-raspberrypi4.rootfs.ota-ext4
  image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext2 filesystem data, UUID=15862fcd-6204-486b-a4c6-fdf7b1710797, volume name "otaroot" (large files)
  after this fix:
  $ file image-raspberrypi4.rootfs.ota-ext4
  image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext4 filesystem data, UUID=3709e65c-1d2b-4280-85d1-638f5f9c3cc0, volume name "otaroot" (extents) (64bit) (large files) (huge files)

  that's why metadata_csum and other features enabled by default
  in ext4 were now missing after
  https://github.com/advancedtelematic/meta-updater/pull/787
  we can drop 64bit feature as well, it's also enabled in default
  recipe-sysroot-native/etc/mke2fs.conf
      [defaults]
            base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr
            default_mntopts = acl,user_xattr
            enable_periodic_fsck = 0
            blocksize = 4096
            inode_size = 256
            inode_ratio = 16384

      [fs_types]
            ext3 = {
                    features = has_journal
            }
            ext4 = {
                    features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
                    inode_size = 256
            }
      ...

Signed-off-by: Martin Jansa &lt;martin.jansa@lge.com&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
</feed>
