4376 Commits

Author SHA1 Message Date
Kai Lüke
bfc64f2eec
build_toolchains: Fix upload path for toolchain-arm64 package
The Rust arm64 crossdev toolchain package was uploaded to
toolchain-arm64/rust… instead of toolchain-arm64/dev-lang/rust….
Upload the complete dev-lang folder as only Rust will be fetched
from there anyway.
2020-05-14 13:44:02 +02:00
Kai Lüke
4c2eb49b1e
Merge pull request #60 from flatcar-linux/kai/jenkins-force-package-rebuild
build_packages: Add flag to ignore some binary packages
2020-05-11 16:25:41 +02:00
Kai Lüke
afaaa69da4
build_packages: Add flag to ignore some binary packages
When the ebuild file changed but not its version nor its cross-workon
commit, the binary package would be used. Also some dependencies are not
encoded to trigger a rebuild of depending packages.
Allow to exclude some binary packages so that we can be sure that they
are rebuilt.
2020-05-11 16:19:13 +02:00
Kai Lüke
b1650c864b
Merge pull request #59 from flatcar-linux/kai/binary-packages
Reuse correct binary packages for a Flatcar version
2020-05-11 15:44:16 +02:00
Dongsu Park
ed3b0e3b00
Merge pull request #61 from flatcar-linux/vbatts/01
README: point to the current flatcar docs
2020-05-11 12:24:40 +02:00
Kai Lüke
1216797010
Reuse correct binary packages for a Flatcar version
Two Flatcar versions were used in /etc/portage/make.conf both in the SDK
and in the boards.
Use only a single version by default to get the expected results and not
something else when using binary packages.

The Rust crossdev package was never uploaded to /sdk/ and always
had to be compiled again.
Upload it in a separate toolchain-arm64 directory because /Packages in /crossdev/
doesn't refer to the Rust package and its use flags.
2020-05-11 10:48:11 +02:00
Vincent Batts
b1d7e43b5c
README: point to the current flatcar docs
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-05-07 14:27:46 -04:00
Kai Lüke
1477835467
Merge pull request #58 from flatcar-linux/kai/dev-container-binhost
build_library/dev_container_util.sh: Use correct BINHOST URLs
2020-05-04 13:17:11 +02:00
Kai Lüke
add1801bd1
build_library/dev_container_util.sh: Use correct BINHOST URLs
The BINHOST was still configured to be the CoreOS CL upstream location
which does not work for independent Flatcar CL releases. This broke
binary package installation in the development container.
Use the correct BINHOST to fix installation of binary packages in the
development container.
2020-05-04 12:19:54 +02:00
Kai Lüke
b90a78ea92
Merge pull request #57 from flatcar-linux/kai/cloudinit-ovfmetadata
build_library/template_vmware.ovf: Document and add cloud-init OVF vars
2020-04-27 13:47:19 +02:00
Kai Lüke
2988c67288
build_library/template_vmware.ovf: Document and add cloud-init OVF vars
The configuration variables for the Ignition configuration also serve as
data source for coreos-cloudinit config data (which includes plain scripts).
Document them properly and also call out that the networking variables only
work if coreos-cloudinit data is used.
For some use cases, too few networking variables were available. Add secondary
routing variables for the main network interface and add a second interface.
2020-04-27 12:12:31 +02:00
Kai Lüke
8677f4b370
Merge pull request #56 from flatcar-linux/kai/vmware-ovf
build_library/template_vmware.ovf: Remove old CoreOS OVF variables
2020-04-17 17:03:59 +02:00
Kai Lüke
3080ee80fc
build_library/template_vmware.ovf: Remove old CoreOS OVF variables
There was a logical mistake in Ignition that caused ignition.config.*
only to work when it was part of the ovfenv. Thus they were added but
the old CoreOS variables marked deprecated and kept. With both as OVF
variables each of them worked but directly specifying ignition.config.*
as guest variable still didn't because of the logical mistake.
Now there is a fix and both work well when specified directly as guest
variable (https://github.com/flatcar-linux/ignition/pull/11).
Delete the old CoreOS OVF variables because they just clutter the UI
and only the Ignition variables should be used in the UI.
2020-04-17 15:51:08 +02:00
Marga Manterola
244e90d6a3
Merge pull request #55 from flatcar-linux/marga-kinvolk/mini-typo
Fix typo
2020-04-06 17:39:45 +02:00
Marga Manterola
368a6322eb
Fix typo 2020-04-06 17:34:08 +02:00
Kai Lüke
9d0e58dbe8
Merge pull request #54 from flatcar-linux/kai/ipxe-script
build_library/vm_image_util.sh: Generate iPXE script
2020-03-18 16:08:49 +01:00
Kai Lüke
8a2ef76a52
build_library/vm_image_util.sh: Generate iPXE script
Write out an iPXE script file for Packet.
The script uses relative URLs to refer to
the other PXE files and thus can be copied
along with the files to any server.
This is useful because it saves the creation
of an iPXE script for a release/channel on a
third-party service. For CI testing it is
also helpful because the script does not only
end up on the release server but also already
on the Google buckets, refering to unpublished
PXE payloads.
2020-03-18 16:01:03 +01:00
Kai Lüke
c6f9b1c01b
Merge pull request #53 from flatcar-linux/kai/use-ignition-ovf-vars
build_library/template_vmware.ovf: Use Ignition OVF vars
2020-03-10 13:18:00 +01:00
Kai Lüke
3bf247901c
build_library/template_vmware.ovf: Use Ignition OVF vars
For the Ignition variables to be usable they need to be
specified in the OVF.
Call out that the CoreOS variables are deprecated to
reduce confusion when both are displayed besides each other.
2020-03-09 16:58:05 +01:00
Kai Lüke
2f99e2a1f6
Merge pull request #51 from flatcar-linux/kai/build-prod-container-tar
build_image: Add prodtar command to build a tar ball
2020-02-07 17:31:02 +01:00
Kai Lüke
bc693b2537
jenkins/images.sh: Generate production tar ball 2020-02-07 17:26:29 +01:00
Kai Lüke
21edb365ff
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 16:54:54 +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
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
88adcbd27c
Merge pull request #43 from flatcar-linux/master
Merge upstream
2020-01-15 15:23:01 +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
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
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
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
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