Commit Graph

4592 Commits

Author SHA1 Message Date
Sayan Chowdhury
f521ca99bb
Merge pull request #94 from flatcar-linux/sayan/rename-to-pro
build_library: Rename the images to use pro instead of premium
2020-09-21 21:23:58 +05:30
Sayan Chowdhury
9953cc8c8f
build_library: Rename the images to use pro instead of premium
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-21 20:31:41 +05:30
Sayan Chowdhury
e66c89ef31
Merge pull request #93 from flatcar-linux/sayan/azure-seperate-build
Add Azure OEM and selective private upload
2020-09-21 19:55:23 +05:30
Sayan Chowdhury
cc147a1255
Add the new OEM type, and selective upload azure as private
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-19 18:58:12 +05:30
Vincent Batts
eb5affd424
Merge pull request #92 from flatcar-linux/vbatts/qemu-lint
qemu_template: shell lint and update
2020-09-16 10:47:08 -04:00
Vincent Batts
ed7de96c1f
qemu_template: shell lint and update
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-16 10:30:07 -04:00
Vincent Batts
a97df50696
qemu_template: use more cpus for ARM if available
But don't hog all `VM_NCPUS`, as we are still emulating them

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-15 17:39:35 -04:00
Vincent Batts
a22f316c23
Merge pull request #89 from flatcar-linux/vbatts/build-host
build_packages: export build host information
2020-09-03 08:36:52 -04:00
Vincent Batts
a77e218d4d
Merge pull request #90 from flatcar-linux/vbatts/update-contrib
contrib: allow newer ssh keys, and user-provided template
2020-09-02 08:11:43 -04:00
Vincent Batts
acac817ea1
contrib: shellcheck lint
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-02 08:10:50 -04:00
Vincent Batts
b8360e2c20
contrib: allow newer ssh keys
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-02 08:10:47 -04:00
Vincent Batts
a43fcbb534
contrib: allow user to provide cloud-config template
Respecting that substitutions will still be made, the user may want to
also install their own unit files or similar

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-02 08:10:33 -04:00
Vincent Batts
f104a53aeb
build_packages: export build host information
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-08-28 13:51:22 -04:00
Kai Lüke
bc11ee282d
Merge pull request #86 from flatcar-linux/kai/nightly-sdk
set_version: Support resolving nightly SDKs
2020-08-05 22:06:19 +02:00
Kai Lüke
2a5d54b54c
set_version: Support resolving nightly SDKs
The nightly SDK builds can be used as source for binary packages for
the SDK chroot which helps to reduce local build times.
Add support for resolving the latest nightly SDK in the set_version
script the same way as resolving board nightly builds.
2020-08-05 17:14:09 +02:00
Marga Manterola
34f7e426f4
Merge pull request #82 from flatcar-linux/marga-kinvolk/uuid-disk
Stop probing for UUID 00000000-0000-0000-0000-000000000001 in GRUB
2020-08-04 11:46:10 +02:00
Marga Manterola
c832af024e grub.cfg: Stop probing for UUID 0x01 2020-08-04 11:45:29 +02:00
Kai Lüke
08ce8054ca
Merge pull request #85 from flatcar-linux/kai/no-rust-recompilation
build_library/toolchain_util.sh: Remove old download code for Rust
2020-08-03 11:28:30 +02:00
Kai Lüke
cfdb7b0ab7
build_library/toolchain_util.sh: Remove old download code for Rust
The SDK now includes a Rust version with the aarch64 cross-compilation
libraries and the toolchain job doesn't build it anymore. Yet it was
still recompiled because the path had changed.
Remove the adjustment of the download URL and any automatic building
of Rust. Just issue a warning so that any problem can be spotted easily.
This change does not affect the SDK bootstrapping (full or just stage4)
but affects ./build_packages and the toolchains job. For the toolchains
job the crossdev setup is missing anyway and rebuilding wouldn't help
but only downloading, yet since in stage4 there are no binary package
URLs at all, it's best to remove this step and if it is needed later,
the warning will help.
2020-07-31 22:54:53 +02:00
Kai Lüke
d8519f4b5c
Merge pull request #84 from flatcar-linux/kai/no-metadata-md5-cache
update_ebuilds: Do not generate metadata/md5-cache files
2020-07-30 12:13:54 +02:00
Kai Lüke
254db834fd
update_ebuilds: Do not generate metadata/md5-cache files
The metadata/md5-cache is not required and we stop using it because
this machine-generated content is a common cause for merge conflicts
and has no benefits.
2020-07-28 15:18:16 +02:00
Kai Lüke
52aaa06c79
Merge pull request #83 from flatcar-linux/kai/stage1-gcc-rebuild
build_library/catalyst.sh: Specify which gcc package to rebuild
2020-07-28 14:08:35 +02:00
Kai Lüke
c016b581b4
build_library/catalyst.sh: Specify which gcc package to rebuild
The default update seed command does only specify gcc which leads to
an error because »The short ebuild name "gcc" is ambiguous«.
Choose the standard package name instead of the cross compiler packages
which are only known to emerge because we build them as part of an SDK
release now.
2020-07-27 20:31:17 +02:00
Kai Lüke
d23182c3b4
Merge pull request #81 from flatcar-linux/kai/set-version-maintenance
set_version: Document new naming scheme for nightly builds
2020-07-24 10:41:47 +02:00
Kai Lüke
b2401fbc69
set_version: Document new naming scheme for nightly builds 2020-07-21 21:41:08 +02:00
Kai Lüke
99887bd9ef
Merge pull request #80 from flatcar-linux/kai/fix-set_version
set_version: Set SDK URL to allow a release SDK with a dev board
2020-07-17 12:24:27 +02:00
Kai Lüke
363239ff2d
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-16 17:04:51 +02:00
Kai Lüke
e04421cb59
Merge pull request #79 from flatcar-linux/scripts
common: Support reading the package URL env vars from version.txt by pothos
2020-07-14 21:51:49 +02:00
Kai Lüke
9952f2f84c
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 21:51:49 +02:00
Kai Lüke
b877ab4aa4
Merge pull request #78 from flatcar-linux/scripts
build_library/template_vmware.ovf: Newer OS type and hardware version by pothos
2020-07-09 12:19:23 +02:00
Kai Lüke
6754d2d979
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-09 12:19:23 +02:00
Marga Manterola
e04156a0f1
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-29 15:18:55 +05:30
Dongsu Park
4e109a49cf
Merge pull request #72 from flatcar-linux/dongsu/catalyst-rust-alpha
build_library/catalyst: Update virtual/rust during catalyst stage1 for alpha
2020-06-18 12:06:50 +02:00
Kai Lüke
3dadf125c8
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 18:00:12 +02:00
Dongsu Park
b13976285e build_library: deal with both virtual/rust and dev-lang/rust
Toolchain utils have installed only `dev-lang/rust`. It could result
in version mismatch between `virtual/rust` and `dev-lang/rust`, because
`dev-lang/rust` does not automatically pull in `virtual/rust`.

So install `virtual/rust` instead of `dev-lang/rust`.
2020-06-10 20:30:22 +02:00
Dongsu Park
8047522874 build_library/catalyst: Update virtual/rust during catalyst stage1
Install `virtual/rust` to avoid version conflicts that happen in case of
rust versions in the SDK being different from those in the new ebuilds.

`/usr/share/catalyst/targets/stage1/stage1-chroot.sh` installs gcc and
its dependencies, including `dev-lang/rust`, while `virtual/rust` does
not get updated. That results in version conflicts between
`virtual/rust` and `dev-lang/rust`. To avoid such an issue, we should
update also `virtual/rust` when building stage1. Since `virtual/rust`
automatically pulls in `dev-lang/rust`, we do not need to explicitly
specify `dev-lang/rust` here.
2020-06-10 20:28:40 +02:00
Kai Lüke
c7ad59e28c
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 21:09:44 +02:00
shredgar
c666ae5614
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 12:12:50 +02:00
Benjamin Gilbert
1c0da3c910
test_image_content: whitelist OpenSSL GLSA
We updated to 1.0.2u instead of 1.1.1g.
2020-05-22 15:30:54 +02:00
Benjamin Gilbert
42a45ac727
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 15:30:48 +02:00
Benjamin Gilbert
df718abc57
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 15:30:30 +02:00
Kai Lüke
15681e1d77
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:22:46 +02:00
Kai Lüke
76abe2e8c5
set_lsb_release: update codename 2020-05-18 12:22:51 +02:00
Thilo Fromm
56341ea725 qemu_template.sh: update naming CoreOS -> Flatcar 2020-05-15 15:25:27 +02:00
Kai Lüke
06c4894f71
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 16:03:15 +02:00
Kai Lüke
fbb0970822
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 14:25:56 +02:00
Kai Lüke
066deb9d09
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:26:35 +02:00
Kai Lüke
74f04c59f7
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 15:45:21 +02:00
Vincent Batts
3909f67d24 README: point to the current flatcar docs
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-05-11 12:30:55 +02:00
Marga Manterola
0eea902ddf Fix typo 2020-05-11 12:28:50 +02:00