25370 Commits

Author SHA1 Message Date
Thilo Fromm
17512925e7 SDK prefix: implement suggestions from code review
- remove explicit "-multilib" from prefix keywordsas it is set in
  profile
- split heredoc for generating emerge wrapper so we don't need to
  escape
- add sys-apps/bubblewrap and virtual/tmpfiles to package update
  automation list
- use prefix build fix for libgpg-error from upstream

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-09-29 15:22:45 +02:00
Thilo Fromm
ba4342d2b7 Apply suggestions from code review
Thank you @krnowak! Great review and awesome feedback, as always.

Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
2023-09-29 15:22:45 +02:00
Thilo Fromm
6f38b9ad69 Prefix: add stabilisation TODOs, changelog entry
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-09-29 15:22:45 +02:00
Thilo Fromm
a4d4a94068 Flatcar SDK: add experimental prefix builds
This change adds experimental prefix builds to the Flatcar SDK.

Prefix builds use a custom sys prefix path and emerge all binaries and
runtime dependencies into that prefix.

This path can then e.g. be shipped as a portable sysext since it
includes all dependencies, and has libraries at a custom path so these
do not conflict with libraries on target systems.

Prefix uses a staging environment (path) featuring a full-blown
development environment, and a "final" environment for installing.
Staging and final need to be created using setup_prefix first,
which will also create an emerge wrapper to emerge ebuilds into staging
and subsequently final. The root fs in final may then e.g. be used to
create a distro independent, portable sysext.

Co-authored-by: James Le Cuirot <chewi@gentoo.org>
Co-authored-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
Co-authored-by: Thilo Fromm <thilofromm@microsoft.com>
2023-09-29 15:22:45 +02:00
Krzesimir Nowak
1f5658e7ad
Merge pull request #1201 from flatcar/krnowak/fix-image-changes
Fix garbled output in image changes reports
2023-09-29 14:16:26 +02:00
Krzesimir Nowak
876436f34b ci-automation/image-changes: Work around show-changes issue
There's a bug in show-changes script where it defaults to values with
single quotes in them. So the default scripts directory is not
"scripts" but "'scripts'". This will be fixed in show-scripts, but for
now work it around here by explicitly defining the directories.
2023-09-29 13:49:46 +02:00
Krzesimir Nowak
f44c3d3eaa
Merge pull request #945 from flatcar/krnowak/move-openssh
Move net-misc/openssh from overlay to portage-stable, configuration changes
2023-09-29 13:48:54 +02:00
Krzesimir Nowak
cabc3c0798 changelog: Add entries 2023-09-29 13:47:34 +02:00
Flatcar Buildbot
71ab9b1064 overlay coreos/config: Start installing default openssh configs
The configs provided by the openssh and Gentoo projects usually keep
everything commented out, meaning that the default values will be
used. On top of that, they will also include snippets in the snippet
directory. As such, start installing the default configs. We only mask
a snippet that defines sftp subsystem, because we provide our own
config snippet from coreos-base/misc-files that defines it.
2023-09-29 13:47:34 +02:00
Flatcar Buildbot
88b653b1a5 overlay coreos-base/oem-gce: Update oslogin enablement
We will be installing an sshd config snippet instead of replacing the
whole sshd config. In order to pull this off, we need to make sure
that the snippets directory exists and the main sshd config file
actually includes the snippets in the directory.
2023-09-29 13:47:34 +02:00
Flatcar Buildbot
e983b8fb50 overlay app-emulation/wa-linux-agent: Update ssh config setup
This commit updates our Flatcar patch with a code that will install an
sshd config snippet instead of editing the main sshd config file if
snippets directory exists.
2023-09-29 13:47:34 +02:00
Flatcar Buildbot
8151bc3154 overlay sys-auth/google-oslogin: Add an sshd config snippet
The sshd config provided by this package is now marked as provided for
compatibility only - it will be there in case there is still a symlink
in /etc pointing to it. The new config snippet will be used by the
enable oslogin stuff in the updated coreos-base/oem-gce package in
following commits.
2023-09-29 13:47:34 +02:00
Flatcar Buildbot
d698526730 overlay coreos-base/coreos-init: Pull in ssh config removal
The configs were moved to coreos-base/misc-files. In the meantime,
update python compatibility and drop unused USE flag and an obsolete
README file.
2023-09-29 13:47:07 +02:00
Krzesimir Nowak
ba79258a4f ci-automation/image-changes: Fix some redirection issues
First issue is that on Jenkins, the beginning of the output seems to
be eaten, leaving us only the final part of the reports. This looks
like an issue stemming from redirecting stdout to stdout with
">/dev/stdout". Special case the stdout by not redirecting anything in
such case.

Second issue is that errors printed by the tools we use for generating
the reports go to stderr, so they don't show in the report. So
redirect their stderr to stdout, so the possible errors are visible in
the report file too. We do not want to redirect the stderr of the
print_image_reports function, because that would also capture
debugging stuff from "set -x" that GitHub Actions are using.
2023-09-29 13:13:22 +02:00
Flatcar Buildbot
29c85a2781 overlay profiles: Enable openssh symlink installation on generic images 2023-09-29 07:42:48 +02:00
Flatcar Buildbot
af874a04e2 overlay coreos-base/misc-files: Import Flatcar modifications for openssh
- Import and update configs for ssh client and daemon from the
  flatcar/init repository. These configs have now became snippets that
  the main configuration file will include.

- Install a drop-in file for the ssh.socket unit disabling the rate
  limiting.

- Install compatibility symlinks in old ssh config locations that will
  point to respective files in /usr/share/flatcar/etc.

- Make all these actions optional - openssh USE flag needs to be
  enabled. That way, generic images can pull those changes, while SDK
  can avoid doing so.
2023-09-29 07:42:48 +02:00
Krzesimir Nowak
50cb35e9b3 overlay profiles: Add accept keywords for net-misc/openssh 2023-09-29 07:42:48 +02:00
Krzesimir Nowak
51e1bd31b5 overlay net-misc/openssh: Apply Flatcar modifications
None of these modifications are Flatcar-specific. We are trying to
upstream them in https://github.com/gentoo/gentoo/pull/31615. When
they reach Gentoo, we can move net-misc/openssh to portage-stable.
2023-09-29 07:42:48 +02:00
Krzesimir Nowak
21c3c57ce9 net-misc/openssh: Sync with Gentoo
It's from Gentoo commit 5b974a3c903327b37f46a0212bf397ef634a67fd.
2023-09-29 07:42:48 +02:00
flatcar-ci
96088a2e14 New version: main-3741.0.0-nightly-20230928-2100 2023-09-28 21:00:25 +00:00
Krzesimir Nowak
3440884205 ci-automation/sdk_bootstrap: Put some names into variables
Changing the name of the main branch and the name of the nightly tag
may be useful for testing, so let's have them defined in one place.
2023-09-28 17:22:09 +02:00
Krzesimir Nowak
71b49c8d43 ci-automation: Follow-up fix for 2-phase nightly SDK build tags
We push a commit with the nightly SDK tag to the main branch if the
SDK was built from the main branch. Which is what happens when we
build the nightly intermediate SDK. The final nightly SDK is not built
from the main branch, but rather from the nightly intermediate SDK
tag. Both of them point to the exactly same commit, but the difference
is in what `git rev-parse --abbrev-ref HEAD` returns for each of
those. When the main branch is checked out, the command will return
"main". When the nightly intermediate SDK tag is checked out, the
command will return "HEAD". So when nightly final SDK is being built,
the command returns a string different than "main" and thus decides
not to push the commit with the final nightly SDK tag to the main
branch. Rework it to assume that if `git rev-parse HEAD` and `git
rev-parse origin/main` return the same commit hash (and it's the
nightly build and all that) then the commit should be pushed.

We use "origin/main" instead of just "main" just in case the main
branch was not checked out before, for some reason (may come up in
testing with different names for the main branch when testing).
2023-09-28 17:22:09 +02:00
Krzesimir Nowak
bfea5ae064
Merge pull request #1177 from flatcar/buildbot/weekly-portage-stable-package-updates-2023-09-25
Weekly portage-stable package updates 2023-09-25
2023-09-28 16:10:46 +02:00
Kai Lüke
75c9eb47ef
Merge pull request #1198 from flatcar/kai/omaha-sha256
update_engine/init: Use Omaha hash_sha256 attribute for OEM packages
2023-09-28 16:07:05 +02:00
Kai Lueke
64b9f3df87 update_engine/init: Use Omaha hash_sha256 attribute for OEM packages
This pulls in
https://github.com/flatcar/update_engine/pull/26
and
https://github.com/flatcar/init/pull/108
to use the newer Omaha hash_sha256 attribute.
2023-09-28 15:22:52 +02:00
Krzesimir Nowak
c21e806504 changelog: Add entries 2023-09-28 07:32:49 +02:00
flatcar-ci
bc2e604b59 New version: main-3740.0.0-nightly-20230927-2100 2023-09-27 21:00:28 +00:00
Krzesimir Nowak
781e5c8712 overlay profiles: Add accept keywords for sys-devel/gcc 2023-09-27 17:04:19 +02:00
Krzesimir Nowak
72a4bf71e3 overlay profiles: Add accept keywords for sys-process/procps-4.0.4 2023-09-27 17:04:19 +02:00
Krzesimir Nowak
1ab03057be overlay profiles: Add accept keywords for app-crypt/mit-krb5 2023-09-27 17:04:19 +02:00
Krzesimir Nowak
52e0782e51 overlay profiles: Update accept keywords for net-misc/curl 2023-09-27 17:04:13 +02:00
Krzesimir Nowak
2ec2f288a4 overlay profiles: Add accept keywords for net-dns/bind-tools 2023-09-27 17:02:44 +02:00
Krzesimir Nowak
f496c943e3 overlay profiles: Updated accept keywords for dev-libs/libgcrypt 2023-09-27 17:02:44 +02:00
Flatcar Buildbot
98313b32fa virtual/editor: Sync with Gentoo
It's from Gentoo commit 2959c607d3cbb718dce385b55e2d0fb5ea016e6c.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
1ec15bf254 sys-libs/libnvme: Sync with Gentoo
It's from Gentoo commit d1288e2fe17adb3dacd2ab3f1b415c4ed45136d4.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
93dd0285c1 sys-fs/e2fsprogs: Sync with Gentoo
It's from Gentoo commit 4af7650ee0d53f3c8a6ff2a797b822c718de1af0.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
6817aa442b sys-devel/gettext: Sync with Gentoo
It's from Gentoo commit 7b59174ad2324f8d56bb3467c15954eab3961ea9.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
ebd08984af sys-devel/gcc-config: Sync with Gentoo
It's from Gentoo commit 2ec9739d7cca1a38bd9b3c058c99dd1b58bf09d3.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
236d97af2c sys-devel/gcc: Sync with Gentoo
It's from Gentoo commit 9ee25f02fcb2f92884a64becf5ba618da96d6402.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
9efdd81328 sys-devel/crossdev: Sync with Gentoo
It's from Gentoo commit 4b0f853b602306103adb7a6db9965502fc925f84.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
cd3d065c3b sys-devel/binutils-config: Sync with Gentoo
It's from Gentoo commit 994104f48c43fb8660b54875ac8709215f554eb3.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
2d94039c14 sys-block/thin-provisioning-tools: Sync with Gentoo
It's from Gentoo commit d4d007aac8769809cdf3396100ce5030f980bfa2.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
a2fddbb005 sys-apps/texinfo: Sync with Gentoo
It's from Gentoo commit 887288c471e98185a4d3a0780bdafbd8b86482ff.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
bff30c2ef6 sys-apps/man-db: Sync with Gentoo
It's from Gentoo commit 6e87ef01b974f2c9bb33c0d4dc1404789679a759.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
ad3979e27a sys-apps/kbd: Sync with Gentoo
It's from Gentoo commit 8f6f8dd02e2c34517718402ebdad08ecf63d5869.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
05177628d7 sys-apps/iproute2: Sync with Gentoo
It's from Gentoo commit 41395a1bb3198b2934b87b665eb217251f59aef2.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
429809f26f sys-apps/hwdata: Sync with Gentoo
It's from Gentoo commit a5f9b359fefdfbf7ad8a8de947b5f34a85fffee6.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
3c5ce08e17 sys-apps/ethtool: Sync with Gentoo
It's from Gentoo commit 6d6c8a73ce2d943680148529ecfe90fe24c074b3.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
6186705195 sys-apps/dtc: Sync with Gentoo
It's from Gentoo commit 0428966db63c13fc0142f0500e5c44895793eb37.
2023-09-27 17:02:44 +02:00
Flatcar Buildbot
f1f4dae538 profiles: Sync with Gentoo
It's from Gentoo commit b84f0b5353205a6ba121bf3d0ef64bff9e26e8c2.
2023-09-27 17:02:44 +02:00