4405 Commits

Author SHA1 Message Date
Kai Lüke
471de70882
Merge pull request #81 from flatcar-linux/scripts
set_version: Document new naming scheme for nightly builds by pothos
stable-2512.5.0 stable-2512.4.0 stable-2512.3.0
2020-07-24 10:42:24 +02:00
Kai Lüke
5b3d105128
set_version: Document new naming scheme for nightly builds 2020-07-24 10:42:24 +02:00
Kai Lüke
3c3328cfee
Merge pull request #80 from flatcar-linux/scripts
set_version: Set SDK URL to allow a release SDK with a dev board by pothos
2020-07-23 20:34:28 +02:00
Kai Lüke
7bb25642cd
set_version: Set SDK URL to allow a release SDK with a dev board
The SDK package URL is constructed from FLATCAR_DEV_BUILDS in
build_library/toolchain_util.sh which caused the --dev-board flag
also to imply --dev-sdk. Using --no-dev-sdk didn't help.
Document this and work around it by setting the SDK URL explicitly
with --no-dev-sdk.
2020-07-23 20:34:28 +02:00
Kai Lüke
eaba206e03
Merge pull request #79 from flatcar-linux/kai/read-url-from-version.txt
common: Support reading the package URL env vars from version.txt
2020-07-14 21:51:00 +02:00
Kai Lüke
821918a010
common: Support reading the package URL env vars from version.txt
The environment variables FLATCAR_DEV_BUILDS and FLATCAR_DEV_BUILDS_SDK
define where the base URL for the binary package store of the board
packages and the SDK packages. To set it, they were either exported in
the chroot or passed each time as parameter but this was only available
for the SDK packages in the tricky order
"update_chroot --dev_builds_sdk URL" (or --binhost) and then
"./build_packages --skip_chroot_upgrade".
The defining information for binary package URL comes from version.txt
but it lacks the base URL for a convenient use. Add the base URLs for
SDK and board packages there to be able to get binary packages without
manual tricks and errors. Any changes to
~/trunk/.repo/manifests/version.txt will directly be picked up
from ./build_packages and friends to set the correct URLs in
/etc/portage/make.conf and /build/BOARD/etc/portage/make.conf
so that even a manual "emerge(-BOARD) --usepkg --getbinpkg" uses them.
A helper script "./set_version" is provided to ease modifying
~/trunk/.repo/manifests/version.txt by resolving the latest nightly
version.
Later this functionality can also be used to simplify the Jenkins code
which currently sets these variables (but the special case of the
Release Base download being different from the upload holds).
2020-07-14 20:13:36 +02:00
Kai Lüke
c71dd6c631
Merge pull request #78 from flatcar-linux/kai/update-ova-os
build_library/template_vmware.ovf: Newer OS type and hardware version
2020-07-09 12:18:16 +02:00
Kai Lüke
554394ce52
build_library/template_vmware.ovf: Newer OS type and hardware version
The VM hardware and OS type versions were outdated and resulted in
features not being available by default.
Choose a newer ESXi host version (requires 6.5) and set the guest
OS type to Linux 3.x 64 bit.
2020-07-07 11:35:48 +02:00
Marga Manterola
d7752a2c34
Merge pull request #77 from flatcar-linux/marga-kinvolk/split-toolchains
bootstrap_sdk: build and upload SDK toolchain pkgs
2020-06-26 14:09:18 +02:00
Marga Manterola
2e66377bba bootstrap_sdk: build and upload SDK toolchain pkgs
Before, we were relying on the toolchains job to build and upload
packages that were part of the SDK. With this change, all packages that
should be part of the SDK are built and uploaded by the SDK job. The
toolchains job only builds toolchain packages specific for the release.

This change includes several adjustments done to both the SDK and the
toolchains jobs to make this work:
 * Make the SDK job build all cross toolchains, including Rust
 * Stop building Rust in the toolchains job and use the one in the SDK
   instead.
 * In toolchain_util.sh: detect when the symlink folder for crossdev
   packages is missing and run crossdev to create it during
   update_chroot setup.
 * Make it possible to build the SDK starting from stage 4 instead of
   stage 1, to make the SDK building faster for PR branches / nightlies
   (full build should still be done for releases / weeklies).
2020-06-26 13:23:07 +02:00
Kai Lüke
dd1186fa10
Merge pull request #73 from flatcar-linux/kai/filter-content-for-invalid-chars
Filter out unicode characters in package content list
2020-06-11 16:24:15 +02:00
Kai Lüke
828ae6d540
Filter out unicode characters in package content list
For some unicode characters in ca-certificates file names "rev" complains
about an "invalid or incomplete multibyte or wide character"
and gives no output.
Filter out any unexpected characters for "rev" and replace them with "?"
so that "ls some?name" will still resolve the original name.
2020-06-11 11:27:58 +02:00
Kai Lüke
623eae1a29
Merge pull request #70 from flatcar-linux/kai/write-license
build_library: Enhance license info and store it on the image
2020-06-09 21:08:04 +02:00
Kai Lüke
ef048d2cac
build_library: Enhance license info and store it on the image
The license JSON file did only include the package names but not
any other metadata. Also since the file was not on the image itself,
it had to be downloaded.
Add more metadata to the license JSON and store it on the image.
2020-06-09 20:37:21 +02:00
Kai Lüke
2d17a44760
Merge pull request #71 from edgarlanting/patch-1
Update create-coreos-vdi - grammar change
2020-06-05 11:33:46 +02:00
shredgar
d8d8e203c9
Update create-coreos-vdi - grammar change
Fixed a grammar based line at `Line 47`:
`echo "$0: Target path (${DEST}) do not exists." >&2` -> `echo "$0: Target path (${DEST}) does not exist." >&2`
2020-06-05 11:08:37 +02:00
Kai Lüke
1460c96b6c
Merge pull request #69 from flatcar-linux/kai/whitelist-glsas
Port CoreOS upstream PRs
2020-05-22 15:25:27 +02:00
Kai Lüke
677f141dca
Merge pull request #68 from flatcar-linux/kai/coreos-first-boot
Support the /boot/coreos/first_boot flag file
2020-05-22 15:20:29 +02:00
Kai Lüke
f4aa56a3c8
Support the /boot/coreos/first_boot flag file
If a user or old software creates the flag file on the old CoreOS location,
nothing would happen.
Check the old location, too, so that Ignition is rerun.
2020-05-22 15:19:57 +02:00
Benjamin Gilbert
d86e25ec8d
test_image_content: whitelist OpenSSL GLSA
We updated to 1.0.2u instead of 1.1.1g.
2020-05-22 12:48:37 +02:00
Benjamin Gilbert
832ab266d9
test_image_content: whitelist some GLSAs
Git was fixed by updating to 2.23.3, not 2.26.2.  Python and QEMU are
only in the SDK.
2020-05-22 12:48:28 +02:00
Benjamin Gilbert
3e21211b43
test_image_content: whitelist some GLSAs
systemd and sudo are already fixed.  Git was fixed by updating to 2.23.2,
not 2.24.1.  Samba is 2 years old and customized, thus difficult to update.
file, Python, and gdb are only in the SDK.
2020-05-22 12:48:21 +02:00
Kai Lüke
eeaffa700d
Merge pull request #65 from flatcar-linux/kai/update-codename
set_lsb_release: update codename
2020-05-18 12:22:20 +02:00
Kai Lüke
7e6d5063d9
set_lsb_release: update codename 2020-05-18 11:21:46 +02:00
Thilo Fromm
cd9214f3e0
Merge pull request #64 from flatcar-linux/t-lo/qemu-script-name-changes
qemu_template.sh: update naming CoreOS -> Flatcar
2020-05-15 15:17:02 +02:00
Thilo Fromm
4d8a6cc14a qemu_template.sh: update naming CoreOS -> Flatcar 2020-05-15 13:56:04 +02:00
Kai Lüke
0e740b11a0
Merge pull request #62 from flatcar-linux/kai/sdk-location
SDK: Take environment variable to specify SDK location
2020-05-14 16:02:32 +02:00
Kai Lüke
61161dd924
SDK: Take environment variable to specify SDK location
The dev build SDKs are not in $FLATCAR_DEV_BUILDS/sdk but published under
$FLATCAR_DEV_BUILDS/developer/sdk.
Add an environment variable to specify where the SDK is to be found
but default to $FLATCAR_DEV_BUILDS/sdk if it is not specified.
From Jenkins this variable is exported as DOWNLOAD_ROOT_SDK.
2020-05-14 15:42:29 +02:00
Kai Lüke
121d852fc3
Merge pull request #63 from flatcar-linux/kai/fix-toolchain-arm64-path
build_toolchains: Fix upload path for toolchain-arm64 package
2020-05-14 14:25:20 +02:00
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