Commit Graph

16180 Commits

Author SHA1 Message Date
Jeremi Piotrowski
0993a9ada2 profiles: slsa: Remove quadratic complexity in SRC_URI iteration
SLSA provenance generation iterates over $A (which is a subset of $SRC_URI) and
for each of those tries to find a match in $SRC_URI. That's quadratic
complexity, and the performance impact is bad because we shell out to a helper
utility (basename) for every entry. This is leading to long stalls when
generating SLSA for packages with long distfile lists, like go and rust
packages. Iterate over SRC_URI once and create a dictionary to speed up
subsequent lookups. dev-db/etcdctl is a good candidate for testing.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2023-12-06 14:51:17 +01:00
Krzesimir Nowak
98fbb068ce overlay profiles: Fix a couple of issues with SLSA provenance stuff
- Update to slsa 1.0. This is only partially done, as we still need to
  provide a proper build type. Maybe we could reuse the Github Actions
  Workflow
  (https://slsa-framework.github.io/github-actions-buildtypes/workflow/v1).

- Stop using portageq - its use in ebuilds is banned, so eventually it
  would stop working. Replace it with our hack.

- Stop trying to get a commit hash of coreos-overlay or portage-stable
  as if they were submodules. This setup is long gone, so a commit
  hash of toplevel scripts repo is enough.

- Use zstd for compressing generated JSON files.
2023-12-06 14:03:10 +01:00
Dongsu Park
b26cbfd807
Merge pull request #1464 from flatcar/cacerts-3.95-main
Update ca-certificates in main from 3.94 to 3.95
2023-12-06 09:46:44 +01:00
flatcar-ci
555709a3c4 New version: main-3809.0.0-nightly-20231205-2100 2023-12-05 21:00:25 +00:00
Dongsu Park
2a8db14e90
Merge pull request #1453 from flatcar/buildbot/monthly-glsa-metadata-updates-2023-12-01
Monthly GLSA metadata 2023-12-01
2023-12-05 13:52:50 +01:00
flatcar-ci
e8a298533e New version: main-3808.0.0-nightly-20231204-2100 2023-12-04 21:00:27 +00:00
Mathieu Tortuyaux
eba1c71ae3
Merge pull request #1454 from flatcar/containerd-1.7.10-main
Upgrade Containerd in main from 1.7.9 to 1.7.10
2023-12-04 18:19:54 +01:00
Mathieu Tortuyaux
1cb7be951d
coreos-base/oem-gce: remove ACI built image
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2023-12-04 18:16:06 +01:00
Mathieu Tortuyaux
5cfbf6e1eb
coreos-base/oem-gce: migrate gce to sysext format
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2023-12-04 18:15:58 +01:00
Flatcar Buildbot
1af961999c app-misc/ca-certificates: Update from 3.94 to 3.95 2023-12-04 07:19:24 +00:00
Flatcar Buildbot
dabb09d499 sys-kernel/coreos-sources: Update from 6.1.63 to 6.1.65 2023-12-03 07:11:14 +00:00
flatcar-ci
664162b282 New version: main-3805.0.0-nightly-20231201-2100 2023-12-02 01:58:34 +00:00
flatcar-ci
12350b2fec New version: main-3805.0.0-nightly-20231201-2100-INTERMEDIATE 2023-12-01 21:00:26 +00:00
Mathieu Tortuyaux
586fc12b5e
Merge pull request #1445 from flatcar/tormath1/gcp-oslogin
gcp: fixed OS Login enabling
2023-12-01 15:06:49 +01:00
Mathieu Tortuyaux
31f4f31622
coreos-base/oem-gce: keep unit after its run
Otherwise it gets restarted a few times, which displays this line in the
logs:
```
Nov 30 13:28:41.819250 enable-oslogin[1232]: /etc/pam.d/sshd already exists. Not enabling OS Login
```

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2023-12-01 10:58:32 +01:00
Mathieu Tortuyaux
c927a7aeef
net-misc/openssh: fix duplicate slash
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2023-12-01 10:58:31 +01:00
Flatcar Buildbot
d3de8e602d app-containers/containerd: Update from 1.7.9 to 1.7.10 2023-12-01 08:17:04 +00:00
Flatcar Buildbot
1a3b2b8adb portage-stable/metadata: Monthly GLSA metadata updates 2023-12-01 07:15:03 +00:00
Flatcar Buildbot
05ef9541d5 Update mantle container image to latest HEAD 2023-11-30 21:00:48 +00:00
flatcar-ci
c8dfd3c5d2 New version: main-3804.0.0-nightly-20231130-2100 2023-11-30 21:00:26 +00:00
Kai Lüke
73af503a13
Merge pull request #1442 from flatcar/kai/overlay-whiteouts
build_image_util: Store path list for recreating tmpfiles rules
2023-11-30 11:58:31 +01:00
Kai Lueke
5590da400e build_image_util: Store path list for recreating tmpfiles rules
The removal of files in the overlay present in the lowerdir creates
whiteout entries that mask the lowerdir entries. For those files that
have a tmpfile rule for creation, a reboot would cause the file to be
created in the upperdir, meaning this file is not updated from the
lowerdir when it changes. In addition we have filtered out some tmpfile
rules that caused upcopies (symlinks and directories) which meant that
removing the /etc/resolv.conf symlink didn't bring it back after reboot.
To make files from the lowerdir show up if they have a tmpfile rule that
normally would recreate them we keep a list of whiteout entries that we
clean up on boot. This also prevents freezing files because
systemd-tmpfiles does not need to recreate them in the upperdir.
2023-11-30 11:57:27 +01:00
flatcar-ci
0d6e3aaca9 New version: main-3803.0.0-nightly-20231129-2100 2023-11-29 21:00:40 +00:00
Kai Lueke
319c9501e5 sys-kernel/bootengine: Bump ebuild revision 2023-11-29 15:26:15 +01:00
Flatcar Buildbot
f9c8f28f4f Update mantle container image to latest HEAD 2023-11-29 12:05:31 +00:00
Kai Lüke
230020c64a
Merge pull request #1427 from flatcar/kai/overlay-opaque-dirs
coreos-base/update_engine: Ensure /etc/extensions is mergable
2023-11-29 13:05:16 +01:00
Kai Lueke
0735fcb692 coreos-base/update_engine: bump revision 2023-11-29 12:59:00 +01:00
Kai Lueke
5a2c696e21 coreos-base/update_engine: Ensure /etc/extensions is mergable
This pulls in
https://github.com/flatcar/update_engine/pull/32
to make the Docker/containerd sysexts show up when updating from Beta
3760.1.0.
2023-11-29 12:59:00 +01:00
flatcar-ci
29c322791c New version: main-3802.0.0-nightly-20231128-2100 2023-11-28 21:00:36 +00:00
flatcar-ci
75af154d0a New version: main-3801.0.0-nightly-20231127-2100 2023-11-27 21:00:29 +00:00
flatcar-ci
402a3aa174 New version: main-3798.0.0-nightly-20231124-2100 2023-11-25 02:17:08 +00:00
flatcar-ci
5ac00dadb9 New version: main-3798.0.0-nightly-20231124-2100-INTERMEDIATE 2023-11-24 21:00:23 +00:00
Mathieu Tortuyaux
a98abadccb
Merge pull request #1410 from flatcar/linux-6.1.63-main
Upgrade Linux Kernel for main from 6.1.62 to 6.1.63
2023-11-24 18:49:05 +01:00
Flatcar Buildbot
69bdd3df20 Update mantle container image to latest HEAD 2023-11-24 14:19:39 +00:00
Krzesimir Nowak
7b19e92f30
Merge pull request #1169 from flatcar/krnowak/image-changes
Generate reports for OEM and base sysext images, allow reports against last nightly
2023-11-24 10:29:07 +01:00
flatcar-ci
38828976cc New version: main-3795.0.0-nightly-20231121-2100 2023-11-21 21:00:26 +00:00
Krzesimir Nowak
71eed26ee0 overlay, ci-automation: Try making common-oem-files a valid ebuild
Assignment of EAPI must be the first non-comment, non-blank line in
the ebuild, otherwise portage masks it as corrupted.
2023-11-21 16:00:00 +01:00
Krzesimir Nowak
9a780a3e90 overlay coreos-base/common-oem-files: Move hack description down
EAPI needs to be defined within first 24 lines, so the description
would push the definition too much down as it needs to happen after
possible declaration of EAPI as local for the source case.
2023-11-21 16:00:00 +01:00
Krzesimir Nowak
8a75eba906 overlay, ci-automation: Another attempt at providing OEMID info
Please read the comment at the top of the coreos-base/common-oem-files
ebuild for details.
2023-11-21 16:00:00 +01:00
Krzesimir Nowak
f542807a9e overlay, ci-automation: Factor out OEMID info to a separate file
Image changes job needs a list of OEMIDs that are built for a specific
architecture. Similar information already existed in the
coreos-base/common-oem-files ebuild, so factor it out to a separate
file, so the image changes job does not need to source the entire
ebuild (or process it in other way), but rather source the smaller
file.
2023-11-21 16:00:00 +01:00
Krzesimir Nowak
a7853de174 overlay coreos-base/common-oem-files: Add some arch info about OEM
For now we don't have a single place where we could learn about which
OEMs with a sysext image gets built for certain architecture. So add
it for now to the coreos-base/common-oem-files package. Missing
architecture info for an OEM that gets built only in a certain arch is
not going to be fatal for the image changes job - we will just get a
report for this OEM with messages about failures to download some
files.
2023-11-21 16:00:00 +01:00
Flatcar Buildbot
94ec7b09dc sys-kernel/coreos-sources: Update from 6.1.62 to 6.1.63 2023-11-21 07:11:50 +00:00
flatcar-ci
0dd4f52127 New version: main-3794.0.0-nightly-20231120-2100 2023-11-20 21:00:33 +00:00
Jeremi Piotrowski
c2f04328a3
Merge pull request #1395 from flatcar/update-azure-linux-agent
app-emulation/wa-linux-agent: Update to 2.9.1.1
2023-11-20 16:41:17 +01:00
Jeremi Piotrowski
590fa87486 app-emulation/wa-linux-agent: Update to 2.9.1.1
This is the current version being deployed to the Azure fleet for other
distros. This update contains a fix for:

  Failed to get the PID of the DHCP client: invalid literal for int() with base 10: 'MainPID=1640'

The upstream fix (stripping MainPid=) is in
https://github.com/Azure/WALinuxAgent/pull/2784.

The patch has also been updated to fix the error:

  Unable to setup the persistent firewall rules: [Errno 30] Read-only file system: '/lib/systemd/system/waagent-network-setup.service'

by redirecting unit file installation to /etc/systemd/system. This change
requires handling in manglefs.sh as package installation unfortunately uses the
same path. This also requires adding a dependency on systemd-sysext.service to
that unit, as it depends on python, which is done through a drop-in.

A final change is handling interface restart. RedHat and Ubuntu bounce a single
link while Flatcar has so far used the "coreos" implementation (restart the
whole systemd-networkd), which forced a full dhcp lease renewal. Follow the
approaches of other distros by copying their implementation of restart_if.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2023-11-20 12:52:24 +01:00
flatcar-ci
9ffb098608 New version: main-3791.0.0-nightly-20231117-2100 2023-11-18 02:09:11 +00:00
flatcar-ci
198c0abf5b New version: main-3791.0.0-nightly-20231117-2100-INTERMEDIATE 2023-11-17 21:00:26 +00:00
Kai Lüke
d15fe243f5
Merge pull request #1400 from flatcar/kai/sshkeys.service
coreos-base/coreos-init: Make sshkeys.service more robust
2023-11-17 16:14:13 +01:00
Kai Lueke
cf261147e9 coreos-base/coreos-init: Bump ebuild revision after change 2023-11-17 15:51:53 +01:00
Mathieu Tortuyaux
5e5da0f34d
Merge pull request #1398 from flatcar/containerd-1.7.9-main
Upgrade Containerd in main from 1.7.8 to 1.7.9
2023-11-17 15:45:51 +01:00