| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Oleh Avramenko <ext-oleh.avramenko@here.com>
|
|\
| |
| | |
image_types_ostree.bbclass: drop prepare_ostree_rootfs prefunc
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 <liu.ming50@gmail.com>
|
|\ \
| |/
|/| |
meta: support readonly sysroot
|
|/
|
|
|
|
|
|
| |
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 <liu.ming50@gmail.com>
|
|\
| |
| | |
aktualizr: drop unnecessary do_configure_prepend
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fails with latest oe-core/master with:
https://git.openembedded.org/openembedded-core/commit/meta/classes/cmake.bbclass?id=0fb6280432a36985590d9a714a5f11164aaebb51
because this prepend does "cd ${S}" and doesn't go back to ${B} and
cmake_do_configure function doesn't cd to ${B} anymore, resulting in:
| CMake Error at CMakeLists.txt:42 (message):
| Aktualizr does not support building in the source tree. Please remove
| CMakeCache.txt and the CMakeFiles/ directory, then create a subdirectory to
| build in: mkdir build; cd build; cmake ..
* drop this whole do_configure_prepend as git-native works fine:
aktualizr-native/1.0+gitAUTOINC+1255aa24fe-7/git$ grep Setting ../temp/log.do_configure
-- Setting version to 2020.10-0-g1255aa24f
aktualizr/1.0+gitAUTOINC+1255aa24fe-7/temp$ grep Setting ../temp/log.do_configure
-- Setting version to 2020.10-0-g1255aa24f
aktualizr/1.0+gitAUTOINC+1255aa24fe-7/build$ which git
/OE/build/oe-core/tmp-musl/hosttools/git
aktualizr/1.0+gitAUTOINC+1255aa24fe-7/build$ grep GIT CMakeCache.txt
GITCOMMAND:FILEPATH=/OE/build/oe-core/tmp-musl/hosttools/git
GIT_EXECUTABLE:FILEPATH=/OE/build/oe-core/tmp-musl/hosttools/git
//ADVANCED property for variable: GITCOMMAND
GITCOMMAND-ADVANCED:INTERNAL=1
//ADVANCED property for variable: GIT_EXECUTABLE
GIT_EXECUTABLE-ADVANCED:INTERNAL=1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|\
| |
| |
| |
| | |
liuming50/add-fakeroot-varflag-to-prepare_ostree_rootfs
image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_ro…
|
|/
|
|
|
|
|
|
|
|
|
| |
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 <liu.ming50@gmail.com>
|
|\
| |
| | |
fit-conf, ostree-initrd, slcand-start: use COMMON_LICENSE_DIR instead…
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
COREBASE in LIC_FILES_CHKSUM
* fixes slcand-start which fails since LICENSE file was changed in 2019 with:
https://git.openembedded.org/openembedded-core/commit/LICENSE?id=f8c9c511b5f1b7dbd45b77f345cb6c048ae6763e
WARNING: slcand-start-1.0-r0 do_populate_lic: ${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. This will become an error in the future
ERROR: slcand-start-1.0-r0 do_populate_lic: QA Issue: slcand-start: The LIC_FILES_CHKSUM does not match for file://oe-core/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690
slcand-start: The new md5 checksum is b97a012949927931feb7793eee5ed924
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|\ \
| |/
|/| |
Fix big-update recipe
|
| |
| |
| |
| |
| |
| |
| | |
* fixes:
ERROR: big-update-2.0-r0 do_populate_lic: QA Issue: big-update: Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM) [license-checksum]
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|/
|
|
|
|
|
| |
* the recipe was changed to inherit python3native, but the do_install still calls
python(2) not python3
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|\
| |
| | |
layer.conf: update LAYERSERIES_COMPAT for hardknott
|
|/
|
|
| |
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|\
| |
| | |
ostree-kernel-initramfs: Use MIT license.
|
|/
|
|
|
|
|
| |
It's a metadata-only recipe and all contributors have agreed that MIT
would be preferable.
Signed-off-by: Patti Vacek <pattivacek@gmail.com>
|
|\
| |
| | |
Update dockerfiles to use Debian Buster.
|
| |
| |
| |
| |
| |
| | |
This should hopefully resolve some python3/repo issues.
Signed-off-by: Patti Vacek <pattivacek@gmail.com>
|
|\ \
| | |
| | | |
image_types_ota.bbclass: use standard ext4 features
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 >= 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 <ricardo@foundries.io>
|
|\ \
| | |
| | |
| | |
| | | |
liuming50/fix-race-problems-of-ostreecommit-ota-tasks
image_types_ota.bbclass: get lock before accessing OSTREE_REPO
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 <liu.ming50@gmail.com>
|
|\ \
| |/
|/| |
image_repo_manifest.bbclass: Improvement for builds outside the .repo…
|
|/
|
|
|
|
|
| |
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 <dominik.wild@glutz.com>
|
|\
| |
| | |
[master] Fix ota-ext4 IMAGE_FSTYPE
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 <martin.jansa@lge.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|\
| |
| | |
image_types_ota.bbclass: call oe_mkext234fs to make ota-ext4 image
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This fixes a following error:
| Saving Environment to EXT4... Unsupported feature metadata_csum found, not writing
when u-boot tries to write env to EXT4 filesystem.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We dont have to maintain our own function calculate_size and use
dd/mkfs.ext4 to generate ota-ext4 image, they have been done in OE
by get_rootfs_size/oe_mkext234fs functions, we could just use them.
The major benefit could be we can sync the future fixes/changes in
these functions from OE, also avoid maintaining some duplicated code in
image_types_ota.bbclass.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
|\ \
| |/
|/| |
Use python3 to get repo working again.
|
|/
|
|
|
|
|
|
| |
The latest version of repo requires python3.6+, but the default Debian
package is fine with the default python3 package (although it complains
about experimental support).
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|\
| |
| | |
aktualizr: Upgrade to 2020.10 release
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Because every aktualizr package was depending on aktualizr-configs, all
of the default configs were getting installed to /usr/lib/sota, despite
that by default none of them were ever used on the device. That
dependency has been removed.
The provisioning recipes still install the recipes they need to the
default location that aktualizr actually uses (/usr/lib/sota/conf.d). If
you want to use anything else, a specific recipe should be created to do
so.
This change rendered the aktualizr-host-tools package useless, so it has
been removed.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|/
|
|
| |
Signed-off-by: Anatoliy Odukha <aodukha@gmail.com>
|
|\
| |
| | |
Sync recipe/append removals from the dunfell branch
|
| |
| |
| |
| |
| |
| | |
It appears to be an almost straight copy of this recipe.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| |
| |
| | |
The version in meta-openembedded already supports a native build.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
| |
| |
| |
| |
| |
| | |
The version in poky already supports a native build.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|/
|
|
|
|
| |
And it's a newer version at that!
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
|
|\
| |
| | |
layer.conf: add gatesgarth to LAYERSERIES_COMPAT
|
|/
|
|
| |
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
|
|\
| |
| | |
ostree-kernel-initramfs: add back initramfs fit workaround
|
|/
|
|
|
|
|
|
|
|
|
| |
Previous initramfs fit specific workaround was removed as part of commit
6eecf1593d, causing ostree to provide an init argument as part of the
kernel command line arguments when it is not really needed.
Bring back the workaround by simply generating an empty file in case
kernel image type is fit and initramfs is also used by the target.
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
|
|\
| |
| | |
image_types_ostree: fix chmod
|
|/
|
|
| |
Signed-off-by: Dominik Wild <dominik.wild@glutz.com>
|
|\
| |
| |
| |
| | |
liuming50/introduce-OSTREE_MULTI_DEVICETREES_SUPPORT
sota: introduce OSTREE_MULTI_DEVICETREE_SUPPORT
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ostree supports multiple devicetrees provided that there is no
/lib/modules/$kversion/devicetree installed on rootfs, in which case,
a uboot variable 'fdtdir' would be written to /boot/loader/uEnv.txt
instead of fdt_file.
Introduce OSTREE_MULTI_DEVICETREE_SUPPORT to control that, when it's
set to '0', there is no functional changes with current implementation,
while it's set to '1', then /lib/modules/$kversion/devicetree would not
be installed and the end users need set their own fdtfile/fdt_file in
boot script to locate the devicetree in 'fdtdir'.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|