Commit Graph

31013 Commits

Author SHA1 Message Date
Krzesimir Nowak
4de73c6657 .github: Add app-crypt/trousers to automation 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
8946716448 app-crypt/trousers: Sync with Gentoo
It's from Gentoo commit 794061a3298b5716db015defa7b3e2c583b73980.
2025-04-24 15:26:13 +02:00
Krzesimir Nowak
af135cd230 overlay app-crypt/trousers: Move to portage-stable 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
336930c736 overlay coreos/config: Add Flatcar modifications for app-crypt/trousers 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
486cb3770b .github: Add app-crypt/sbsigntools to automation 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
92f813bf60 app-crypt/sbsigntools: Sync with Gentoo
It's from Gentoo commit 18c124079dd14ab994e3c4a576a80bbb24e9fa12.
2025-04-24 15:26:13 +02:00
Krzesimir Nowak
21b9f61d96 overlay app-crypt/sbsigntools: Move to portage-stable 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
34f74bfe69 .github: Add app-containers/syft to automation 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
2b015fb31e overlay profiles: Add accept keywords for app-containers/syft 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
5ca9142507 build_library/build_image_util.sh: Use scan instead of packages in syft
The `packages` command is deprecated in favor of `scan`.
2025-04-24 15:26:13 +02:00
Krzesimir Nowak
77de05dc5d app-containers/syft: Sync with Gentoo
It's from Gentoo commit bd2e8861ed30ceecc60aaa3fb9b4014f31878b9e.
2025-04-24 15:26:13 +02:00
Krzesimir Nowak
d477d877ba overlay app-containers/syft: Move to portage-stable 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
8ab019945f overlay coreos/config: Add Flatcar modifications for app-containers/syft 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
ce8bf2e5cf .github: Add app-admin/logrotate to automation 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
15977c97a4 overlay profiles: Drop logrotate config from install mask
I have no idea why it was there, since earlier the config was in
/usr/share/logrotate.
2025-04-24 15:26:13 +02:00
Krzesimir Nowak
e77aebf54e app-admin/logrotate: Sync with Gentoo
It's from Gentoo commit 4cfcb24b782236658e799f383fbe517b2448f025.
2025-04-24 15:26:13 +02:00
Krzesimir Nowak
84df3781a1 overlay app-admin/logrotate: Move to portage-stable 2025-04-24 15:26:13 +02:00
Krzesimir Nowak
0a031b1396 overlay coreos/config: Add Flatcar modifications for app-admin/logrotate 2025-04-24 15:26:13 +02:00
James Le Cuirot
a6bb791eef
Merge pull request #2848 from flatcar/krnowak/qemu-script-bash
build_library/qemu_template.sh: Make it use bash
2025-04-24 13:35:16 +01:00
James Le Cuirot
2f587621ab
dev-util/checkbashisms: Drop package as qemu script now uses Bash
The check for that script was the only consumer.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-24 12:23:46 +01:00
Krzesimir Nowak
654f36e75a build_library/qemu_template.sh: Make it use bash
Insisting on just sh is pointless. Use bash, so the checkbashisms
script running somewhere will just shut up.
2025-04-24 10:53:29 +02:00
Krzesimir Nowak
a33766dd6a
Merge pull request #2847 from flatcar/krnowak/qemu-script-changelog
changelog: Add an entry for recent qemu script changes
2025-04-24 10:48:38 +02:00
Krzesimir Nowak
ae10cb74ce changelog: Add an entry 2025-04-24 09:08:55 +02:00
Mathieu Tortuyaux
aa7a47c16e
Merge pull request #2842 from flatcar/mantle-update-main
Upgrade mantle container image to latest HEAD in main
2025-04-24 09:05:43 +02:00
Flatcar Buildbot
953e77d860 Update mantle container image to latest HEAD 2025-04-23 21:00:45 +00:00
flatcar-ci
c77664a25e New version: main-4314.0.0-nightly-20250423-2100 2025-04-23 21:00:29 +00:00
Krzesimir Nowak
fb2682ddb6
Merge pull request #2846 from flatcar/krnowak/qemu-script
Simplify and improve flatcar_production_qemu*.sh script
2025-04-23 15:15:43 +02:00
James Le Cuirot
5c04d0fcf6
Merge pull request #2837 from flatcar/chewi/dracut
Upgrade Dracut to 106, use its sysroot feature, fix CPU microcode
2025-04-23 13:52:26 +01:00
James Le Cuirot
2af957f377
sys-firmware/intel-microcode: Don't install the split microcode
This is only needed for direct loading by the kernel, which is
dangerous, and we include all the microcode in the initrd anyway.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-23 13:51:12 +01:00
James Le Cuirot
7b3aac22d4
sys-firmware/intel-microcode: Fix inclusion of microcode in the initrd
The microcode was accidentally dropped from Flatcar a while back because
Gentoo started telling Dracut to not include it when USE=-initramfs.
Flatcar disabled that flag because the microcode is installed to /boot.
This is only done under the board root though, not in the final image,
so there's no harm in enabling it.

That Dracut setting also affected the AMD microcode, which is part of
coreos-firmware, so this fixes that too.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-23 13:51:11 +01:00
James Le Cuirot
959e0715a9
sys-apps/systemd: Avoid initrd bloat by using OpenSSL instead of gcrypt
systemd-journal's Forward Secure Sealing feature requires gcrypt, but
Flatcar doesn't need it.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-23 13:51:10 +01:00
James Le Cuirot
e5ef9e4f36
sys-kernel/coreos-kernel: Adapt for new Dracut + bootengine with sysroot
Dracut includes native binaries that are executed during the creation of
the initrd, so it always needs to be installed to /. For now, it expects
to find its modules in the sysroot, so it needs to be installed there
too, though that may change.

bootengine only needs to be installed to sysroot for its Dracut modules.
The update-bootengine tool is a Bash script, so it doesn't really need
to be installed to /.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-23 13:51:09 +01:00
Krzesimir Nowak
7fc5ec8b50 build_library/qemu_template.sh: Add support for primary disk options 2025-04-23 14:41:19 +02:00
Dongsu Park
218bf4f17a overlay ue-rs: update to 2025-04-23
Update coreos-base/ue-rs to 2025-04-23, mainly to fix security issues,
CVE-2024-12224 (GHSA-h97m-ww89-6jmq), GHSA-4fcv-w3qc-ppgg,
GHSA-rr8g-9fpq-6wmg.

Pulls in the following PRs:
* https://github.com/flatcar/ue-rs/pull/60
* https://github.com/flatcar/ue-rs/pull/61
* https://github.com/flatcar/ue-rs/pull/62
* https://github.com/flatcar/ue-rs/pull/64
2025-04-23 14:33:52 +02:00
James Le Cuirot
841cf196d7
sys-kernel/dracut: Heavily patch for the better sysroot functionality
This is code I have submitted upstream that has not yet been merged.
This also includes a small "catch up" patch from 106 to current main for
both a clean base and because these changes actually look important.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-23 12:25:47 +01:00
James Le Cuirot
9bdf3ef1fc
sys-kernel/dracut: Disable the dracut-cpio feature, which requires Rust
Flatcar can't benefit from this performance boost for several reasons,
the main one being the use of binary packages.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-23 12:25:45 +01:00
James Le Cuirot
092e50f8e3
sys-kernel/dracut: Use Gentoo package instead, upgrading to 106
Apply our patch using user-patches instead.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-23 12:25:44 +01:00
flatcar-ci
1522283487 New version: main-4313.0.0-nightly-20250422-2100 2025-04-22 21:00:26 +00:00
James Le Cuirot
e57080daf3
Drop obsolete SETTING_BINPKG_SERVER_DEV variable
This isn't used anywhere, and the referenced bucket is empty.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 17:59:39 +01:00
James Le Cuirot
50d7dd1a84
Drop all references to a toolchain-specific binpkg host
This evidently hasn't been used in a very long time, if ever, and it's
just adding confusion.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 17:59:38 +01:00
Krzesimir Nowak
df17f6b672 build_library/qemu_template.sh: Add support for extra disks 2025-04-22 17:19:38 +02:00
Krzesimir Nowak
36ee8ed43a build_library/qemu_template.sh: Simplify qemu execution
The final part of the script differed only the name of the qemu binary
to execute and in network device driver (virtio-net-pci on amd64 vs
virtio-net-device on arm64). virtio-net-pci seems to be working also
on arm64, so simplify the code to avoid repetition.
2025-04-22 17:19:38 +02:00
Krzesimir Nowak
b3dd088469 build_library/qemu_template.sh: Some whitespace fixes 2025-04-22 17:19:38 +02:00
Krzesimir Nowak
2ca63a3a82 build_library/qemu_template.sh: Simplify mounting VM image
There's no need to differentiate between amd64 and arm64 boards here
any more. This also adds bootindex=1 option to the -device flag, so we
can pass more secondary disks without affecting the boot order.
2025-04-22 17:19:38 +02:00
James Le Cuirot
8fae246f25
Merge pull request #2835 from flatcar/chewi/pre-dracut
Various changes in preparation for upgrading Dracut
2025-04-22 14:24:25 +01:00
James Le Cuirot
14398067d5
build_library: Change extraction script to xz and rewrite to be simpler
This version writes fewer temporary files and tries cpio multiple times
for concatenated archives again.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 13:14:02 +01:00
James Le Cuirot
d1a38bfa94
sys-kernel/coreos-modules: Compress initrd with xz rather than zstd
Again, zstd is faster but we're getting seriously short on space. Unlike
the kernel itself, this applies to both amd64 and arm64.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 13:14:01 +01:00
James Le Cuirot
48ba5fbc6d
sys-kernel/coreos-modules: Compress kernel with xz rather than zstd
zstd is faster but we're getting seriously short on space.
Unfortunately, the arm64 kernel still cannot be compressed, but it has
benefited from another space saving measure recently, and GRUB also
takes up less space in /boot.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 13:14:00 +01:00
James Le Cuirot
a072bde74c
sys-apps/systemd: Bump to v257.5 for the SDK only
We need this for dracut-install to have JSON support. It doesn't matter
that the Flatcar image will still have v256.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 13:13:59 +01:00
James Le Cuirot
6237a60988
build_dev_binpkgs: Only build packages available to the board profile
Updating only the SDK to systemd-257 caused this script to break, as it
saw this version being pulled in as a BDEPEND and then tried to build it
using the board profile. See the comment for details.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 13:13:59 +01:00