flatcar-scripts/build_library
Thilo Fromm 361eda220b sysext_prod_builder: fix build id mismatch
This change fixes a version mismatch of FLATCAR_BUILD_ID when performing
a dev build of an existing release tag. The build ID is part of the
version string of dev builds, separated by a "+" from the main version.
If common.sh detects a dev build (COREOS_OFFICIAL != 1) and
FLATCAR_BUILD_ID is empty, common.sh will generate a new ID based on a
timestamp.

For official releases, FLATCAR_BUILD_ID is not set in version.txt. A dev
build of a release tag would make common.sh generate a new ID each time
it is sourced by different processes. build_image sources common.sh
first, and writes the resulting version string the OS image's
os-release file. build_sysext runs later and also sources common.sh,
leading its version check to fail as its own VERSION now differs from
the version of the OS image it's supposed to generate sysexts for.

This change reads BUILD_ID from the OS image rootfs in
sysext_prod_builder and exports FLATCAR_BUILD_ID accordingly before
calling build_sysext. Hence FLATCAR_BUILD_ID is not empty, so common.sh
in build_sysext will not re-generate it.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2024-06-25 11:44:24 +02:00
..
board_options.sh build_library/board_options: Fix pkg_version function 2021-09-28 16:32:30 +02:00
build_image_util.sh Drop cros-workon.eclass and replace with git-r3.eclass 2024-06-21 10:47:50 +01:00
catalyst_sdk.sh build_library/catalyst_sdk.sh: Try different way of picking python as default intepreter 2021-12-10 20:06:40 +01:00
catalyst_toolchains.sh catalyst_toolchains: don't touch the SDK 2021-06-25 10:37:21 +02:00
catalyst.sh build_library/catalyst.sh: Fix and extend snapshot handling 2023-05-25 12:35:29 +02:00
check_root build_library/check_root: Silence a warning about cgi.py 2023-05-11 12:29:48 +02:00
configure_bootloaders.sh 2317.0.1 2019-11-07 19:40:01 +01:00
cros_vm_constants.sh Move cros_vm_constants to build_library 2021-08-27 14:20:54 +02:00
dev_container_util.sh dev_container_util.sh: remove spurious DEVCONTAINER=1 2023-10-23 16:05:45 +02:00
disk_layout.json disk_layout: use btrfs for the /usr partition 2023-09-25 12:56:04 +02:00
disk_util disk_util: Mount btrfs fs with rescue= option 2024-03-05 17:35:55 +01:00
ebuild_aci_manifest.in Initial checkin of docker-aci build script 2017-03-01 14:59:43 -08:00
ebuild_aci_util.sh build_library: Enhance license info and store it on the image 2020-06-09 21:09:44 +02:00
extra_sysexts.sh sysext: Add python sysext 2024-05-29 19:18:18 +02:00
extract-initramfs-from-vmlinuz.sh build_library: Generate content files for initrd too 2023-02-01 14:43:24 +01:00
gen_tmpfiles.py build_library/gen_tmpfiles.py: Add options for allowed users and groups 2023-04-26 15:39:58 +02:00
generate_au_zip.py generate_au_zip: Remove useless line 2021-08-24 16:08:15 +02:00
generate_grub_hashes.py build_library: Fix getting integer from string 2021-08-18 19:01:51 +02:00
generate_kernel_hash.py build_library: Fix python script extension 2021-08-18 18:57:04 +02:00
grub_install.sh grub_install: Remove core grub modules from EFI partition for i386-pc 2024-06-21 11:04:35 +03:00
grub.cfg build_library: Drop redundant config from grub.cfg 2024-02-26 12:01:10 +01:00
menu.lst grub: the one bootloader to rule them all 2014-12-05 16:51:11 -08:00
modify_image_util.sh Allow specifying multiple compression formats 2022-03-07 12:01:21 +00:00
parallels_pvs.sh build_library: set parallels build scripts as executable 2016-10-27 13:27:30 -07:00
prefix_util.sh sysext: Add python sysext 2024-05-29 19:18:18 +02:00
prod_image_util.sh sysext: Add podman sysext 2024-05-03 22:59:36 +09:00
qemu_template.sh qemu_template.sh: Allow parameters for kernel and initrd 2024-04-04 16:53:08 +09:00
release_util.sh vm_image_util: produce qcow2 images for Scaleway 2024-04-26 09:47:29 +02:00
reports_util.sh build_library: Move report function to a separate file 2023-06-06 13:01:09 +02:00
set_lsb_release Use new website flatcar.org 2022-09-14 14:32:49 +02:00
sysext_mangle_containerd-flatcar app-containers: use upstream docker, containerd, runc 2023-10-30 17:21:26 +01:00
sysext_mangle_docker-flatcar app-containers: use upstream docker, containerd, runc 2023-10-30 17:21:26 +01:00
sysext_mangle_flatcar-podman sysext: Add podman sysext 2024-05-03 22:59:36 +09:00
sysext_mangle_flatcar-python sysext: Add python sysext 2024-05-29 19:18:18 +02:00
sysext_mangle_flatcar-zfs build_library: Add mangle script for zfs sysext 2024-03-11 11:57:45 +00:00
sysext_prod_builder sysext_prod_builder: fix build id mismatch 2024-06-25 11:44:24 +02:00
template_vmware.ovf build_library/template_vmware.ovf: Newer OS type and hardware version 2020-07-09 12:19:23 +02:00
test_build_root fix(test_image_content): Improve /usr symlink and conflict tests. 2013-12-09 19:32:54 -08:00
test_image_content.sh test_image_content.sh: remove 202209-12 exception (grub) 2023-11-08 09:19:05 +01:00
test_oem_pkgs *: Make catalyst and emerge verbose by default 2023-02-16 13:57:05 +01:00
toolchain_util.sh overlay: Fix references to moved packages 2024-01-16 12:55:15 +01:00
update_chroot_util.sh build_library/update_chroot_util.sh: Ignore equery's non-zero exit status 2023-04-26 07:49:56 +02:00
virtualbox_ovf.sh virtualbox_ovf.sh: use virtio network interfaces 2014-11-07 16:16:03 -07:00
vm_image_util.sh grub_install: Remove core.{elf,efi} after copying 2024-06-21 11:04:35 +03:00
write_hdd.sh build_library: set parallels build scripts as executable 2016-10-27 13:27:30 -07:00