diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-10-12 20:53:52 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-10-14 12:40:23 +0000 |
commit | 6d46b8cb03890d899af2bf6e5222dc0954836c90 (patch) | |
tree | 785a0c825b806510b1cd272d513310e330011c1b /meta-agl-distro/conf/distro/poky-agl.conf | |
parent | 1aaa9128f1dae5365a0ca113c8b71583a3c9a008 (diff) |
[wic] race condition: do not update the fstab
do_image_wic will run in parallel with other jobs
in the current codebase of OE. Then these other
jobs might get the wrong content for
/etc/fstab that is modified by do_image_wic.
To prevent this behaviour, disable the modification in wic.
NOTE: This might have consequences on custom or complex
wks files. Thus allow the user to override this.
Bug-AGL: SPEC-3621
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I03cb589fb592c1d7e0ccfff54535b91ba73974be
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25412
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'meta-agl-distro/conf/distro/poky-agl.conf')
-rw-r--r-- | meta-agl-distro/conf/distro/poky-agl.conf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-agl-distro/conf/distro/poky-agl.conf b/meta-agl-distro/conf/distro/poky-agl.conf index ea83e42ef..c3b6eddae 100644 --- a/meta-agl-distro/conf/distro/poky-agl.conf +++ b/meta-agl-distro/conf/distro/poky-agl.conf @@ -196,3 +196,12 @@ PREFERRED_RPROVIDER_virtual/low-can-dev-mapping ?= "dev-mapping" # support. Not having it is not an issue, since there is also explicit # enabling of required security features done by meta-agl/meta-security. BBMASK += "meta-security/recipes-kernel/linux/linux-%_5.%.bbappend" + +# Workaround for https://jira.automotivelinux.org/browse/SPEC-3621 +# TLDR: do_image_wic will modify the target's /etc/fstab while +# do_image_tar and do_image_ext4 can run in parallel +# This needs to be fixed upstream: +# See https://bugzilla.yoctoproject.org/show_bug.cgi?id=13994 +# For convenience restricted to ext4 and tar image types. +AGL_FORBID_FSTAB_UPDATE ?= "${@bb.utils.contains_any('IMAGE_FSTYPES', 'ext4 ext4.xz tar tar.gz tar.bz2 tar.xz', '--no-fstab-update', '', d)}" +WIC_CREATE_EXTRA_ARGS_append = " ${AGL_FORBID_FSTAB_UPDATE}" |