4399 Commits

Author SHA1 Message Date
Kai Lüke
ff61ba8894
jenkins/images.sh: Generate production tar ball 2020-02-07 17:32:36 +01:00
Kai Lüke
1ba559fc70
build_image: Add prodtar command to build a tar ball
Create a tar ball with the contents of the / and /usr partitions
to be used as follows with systemd-nspawn (via machinectl):
  machinectl import-tar flatcar-container.tar.gz flatcar-container
  machinectl start flatcar-container
  machinectl shell flatcar-container
or with docker by converting it to an OCI image:
  docker import -c "CMD /bin/bash" flatcar-container.tar.gz flatcar-container

Since the new "prodtar" command relies on the results of the "prod" command,
it bundles it so that "prod prodtar" and "prodtar" is the same.
2020-02-07 17:32:27 +01:00
Dongsu Park
bc549e245d Merge branch 'flatcar-master' into flatcar-master-edge 2020-01-23 16:30:29 +01:00
Dongsu Park
5dc473a36e
Merge pull request #50 from flatcar-linux/dongsu/dev-container-fix-url
build_library: fix sync URI under Gentoo env for developer containers
2020-01-23 16:15:44 +01:00
Dongsu Park
fc835de3aa build_library: fix sync URI under Gentoo env for developer containers
When running `emerge-gitclone` in a developer container, it still
tries to fetch from coreos repos. We should make it fetch from
flatcar-linux repos.
2020-01-22 16:31:00 +01:00
Kai Lüke
1adf4039fb
Merge pull request #47 from flatcar-linux/kai/same-appid-for-arm
Use same APPID for arm64 and amd64
2020-01-22 11:30:51 +01:00
Kai Lüke
260329b417
Merge pull request #48 from flatcar-linux/kai/same-appid-for-arm-edge
Use same APPID for arm64 and amd64
2020-01-22 11:30:41 +01:00
Kai Lüke
fd414d540a
Use same APPID for arm64 and amd64
Nebraska supports an additional arch
variable to distinguish both boards.
2020-01-22 10:48:41 +01:00
Kai Lüke
4f9514139c
Use same APPID for arm64 and amd64
Nebraska supports an additional arch
variable to distinguish both boards.
2020-01-22 10:42:12 +01:00
Kai Lüke
05b7b3c605
Merge pull request #45 from flatcar-linux/kai/update-edge
Merge flatcar-master to -edge
2020-01-21 13:27:31 +01:00
Andrew Jeddeloh
875e379443
disk_util: retry loopback mounts if they fail
This fails frequently but should succeed if retried. This should reduce
failed builds.
2020-01-21 12:38:08 +01:00
Andrew Jeddeloh
1cbacf8076
build_library/disk_util: work around losetup bug
Retry losetup if it fails, up to 5 times with 5 seconds between retries.
2020-01-21 12:38:08 +01:00
Benjamin Gilbert
64f70c3f20
test_image_content: whitelist OpenSSH GLSA
It only affects a default-disabled USE flag, and our overlay ebuild is too
old to even support it.
2020-01-21 12:38:07 +01:00
Kai Lüke
88adcbd27c
Merge pull request #43 from flatcar-linux/master
Merge upstream
2020-01-15 15:23:01 +01:00
Dongsu Park
124ce9e911
Merge pull request #36 from flatcar-linux/dongsu/gpt-type-flatcar-edge
build_library: replace coreos with flatcar in disk layout for edge
2019-12-18 16:13:58 +01:00
Andrew Jeddeloh
7bebaa7404
Merge pull request #888 from ajeddeloh/fix-losetup
disk_util: retry loopback mounts if they fail
2019-12-17 14:58:55 -08:00
Andrew Jeddeloh
c0ed59f902 disk_util: retry loopback mounts if they fail
This fails frequently but should succeed if retried. This should reduce
failed builds.
2019-12-17 17:17:21 +00:00
Andrew Jeddeloh
115790bc9c
Merge pull request #885 from ajeddeloh/workaround-losetup
build_library/disk_util: work around losetup bug
2019-12-13 11:34:34 -08:00
Dongsu Park
e362b1639d jenkins: add ami_vmdk to format list for ARM
The `image-matrix.groovy` script reads the list of image formats for ARM,
from `formats-arm64-usr.txt`
So we need to also add ami_vmdk to the list to publish AWS ARM images.
2019-12-13 16:26:39 +01:00
Dongsu Park
dfbee41ef6
Merge pull request #37 from flatcar-linux/dongsu/ami-format-list-arm64
jenkins: add ami_vmdk to format list for ARM
2019-12-13 16:25:16 +01:00
Andrew Jeddeloh
37da2494a2 build_library/disk_util: work around losetup bug
Retry losetup if it fails, up to 5 times with 5 seconds between retries.
2019-12-13 00:15:49 +00:00
Dongsu Park
eb1decdb9e jenkins: add ami_vmdk to format list for ARM
The `image-matrix.groovy` script reads the list of image formats for ARM,
from `formats-arm64-usr.txt`
So we need to also add ami_vmdk to the list to publish AWS ARM images.
2019-12-12 14:12:55 +01:00
Dongsu Park
2cd7b3b051 build_library: replace coreos-usr with flatcar-usr in disk_util
The disk_util also needs an update for the GPT type string.
2019-12-10 15:40:17 +01:00
Dongsu Park
50962b847e build_library: replace coreos with flatcar in disk layout
To make GPT partition type strings include flatcar- strings
instead of coreos-, we need to change the disk layout file.
2019-12-10 15:40:12 +01:00
Dongsu Park
84ff847d5f
Merge pull request #34 from flatcar-linux/dongsu/merge-flatcar-master-edge-2019-12-03
Merge flatcar-master to flatcar-master-edge 2019-12-03
2019-12-09 14:46:38 +01:00
Kai Lüke
e9565ef8a4 build_library/toolchain_util.sh: Install Rust from cross-compilation toolchain 2019-12-09 13:24:12 +01:00
Dongsu Park
14dc3ec7c8 build_library: make toolchain build rust for cross-builds
To make packages-matrix build rust sources for arm64-usr,
we need to make toolchain include the rust target for arm.
Unfortunately, catalyst does not support the cross-build rust target
by default. We also cannot add `dev-lang/rust` to `$TOOLCHAIN_PKGS`,
because then catalyst would tries to build a `cross-*/rust` package,
which does not exist.

So we need to manually run emerge for rust, without `--newuse -u`
options. If the `--newuse -u` options are given, the rust will not
be installed at all.
2019-12-09 13:23:44 +01:00
Dongsu Park
2e3641fc75
Merge pull request #33 from flatcar-linux/kai/cross-toolchain-rust
build_library/toolchain_util.sh: Install Rust from cross-compilation toolchain
2019-12-04 16:21:21 +01:00
Dongsu Park
55f436b4f1
Merge pull request #29 from flatcar-linux/dongsu/gpt-type-flatcar
build_library: replace coreos with flatcar in disk layout
2019-12-03 12:38:50 +01:00
Kai Lüke
3e979ed7f1
build_library/toolchain_util.sh: Install Rust from cross-compilation toolchain 2019-12-03 11:49:20 +01:00
Kai Lüke
53441dc9ae
Merge pull request #32 from flatcar-linux/dongsu/fix-toolchain-packages
build_library: make toolchain build rust for cross-builds
2019-12-02 17:01:08 +01:00
Kai Lüke
13afe0caf1
Merge pull request #31 from flatcar-linux/kai/update-flatcar-master-edge
Update flatcar-master-edge
2019-12-02 17:00:24 +01:00
Dongsu Park
da050d7ed1 build_library: make toolchain build rust for cross-builds
To make packages-matrix build rust sources for arm64-usr,
we need to make toolchain include the rust target for arm.
Unfortunately, catalyst does not support the cross-build rust target
by default. We also cannot add `dev-lang/rust` to `$TOOLCHAIN_PKGS`,
because then catalyst would tries to build a `cross-*/rust` package,
which does not exist.

So we need to manually run emerge for rust, without `--newuse -u`
options. If the `--newuse -u` options are given, the rust will not
be installed at all.
2019-11-29 16:49:51 +01:00
Kai Lüke
378a42b73c
Merge branch 'flatcar-master' into kai/update-flatcar-master-edge 2019-11-26 11:45:01 +01:00
Dongsu Park
682b04635d
Merge pull request #23 from flatcar-linux/dongsu/arm-port
Support for ARM architecture
2019-11-25 15:24:55 +01:00
Kai Lüke
1c3323507d
setup_board: Setup library path for qemu-aarch64 2019-11-22 15:10:17 +01:00
Kai Lüke
d17776916e
Merge pull request #30 from flatcar-linux/kai/document-ignition-usage
build_library: Document when Ignition needs flatcar.first_boot=1, and also document flatcar.autologin
2019-11-21 16:37:44 +01:00
Kai Lüke
b361b03cef
build_library: Document flatcar.autologin kernel cmdline option 2019-11-21 16:10:11 +01:00
Kai Lüke
6888b7fbc6
build_library: Document when Ignition needs flatcar.first_boot=1 2019-11-21 15:15:17 +01:00
Kai Lüke
e6c9122b0b
setup_board: Make amd64-usr the default board 2019-11-20 10:57:09 +01:00
Benjamin Gilbert
1383869445
Merge pull request #884 from bgilbert/glsa
test_image_content: whitelist OpenSSH GLSA
2019-11-19 12:22:00 -05:00
Dongsu Park
c9b4df9f1f
build_library/check_root: add shared libs to the IGNORE_MISSING
To avoid warnings about missing libraries, we should add several shared
libraries to the list of IGNORE_MISSING.
2019-11-19 17:09:16 +01:00
Dongsu Park
72d65de44b
support --binhost= option for setup_board and update_chroot
Add an option to specify `--binhost=`, to make the scripts download
binary packages from any arbitrary host. This is needed to get around
toolchain issues when building rust.
2019-11-19 17:09:16 +01:00
Kai Lüke
e98d9e1e8f
build_library: Replace edk2 with own edk2-aarch64 2019-11-19 17:09:16 +01:00
Kai Lüke
cb4d3255fa
build_library: ignore GLSA 201904-13 to build on arm64
GLSA 201904-13 was fixed by dev-vcs/git >= 2.20.1, but it's unstable
for arm64. That has been already changed to stable for arm64 on Gentoo
upstream, but both Container Linux and Flatcar Linux still have older
ebuild with `~arm64`. So for now we should ignore the GLSA 201904-03.
2019-11-19 17:09:16 +01:00
Kai Lüke
b4a95a869f
arm64: Build binary packages for dependencies before installing toolchain
This part was missing when the core was changed in
ce2e7e8a17a8026d5681d771f34df633ac6aec98
and thus it was not possible to install the toolchain when no packages
were available in the external HTTP storage.
2019-11-19 17:09:16 +01:00
Kai Lüke
28317f38ef
Revert "transfer.sh: Drop support for boards other than amd64-usr"
This reverts commit 32863264fda3a7313ce1b9a63142b39334ff44de.

NOTE: devsign/sign now require the board as additional parameter.
2019-11-19 17:09:15 +01:00
Kai Lüke
f9a9b2e803
Revert "build_toolchains: Stop building arm64 toolchains"
This reverts commit ecc6d6bd3e38de4a7324ec5b2927bd6ed0de092d.
2019-11-19 17:09:15 +01:00
Kai Lüke
87dad556e6
Revert "jenkins: Drop the unused arm64 image format list"
This reverts commit e9f17c814306aa0ac476e51cf1c69f3a159d6e05.
2019-11-19 17:09:15 +01:00
Kai Lüke
e65118da4f
Revert "core_dev_sign_update: Default to the amd64-usr board"
This reverts commit 8f761a7fdb5ba29694ec7401bca8c2d7528305de.
2019-11-19 17:09:15 +01:00