Commit Graph

25901 Commits

Author SHA1 Message Date
Jeremi Piotrowski
87262e4f91 build_library: Add mangle script for zfs sysext
There are two challenges with the sysext: it needs config files in /etc
and it needs udev rules for mounting during boot to work. The etc files
are placed in the standard flatcar etc overlay path but the overlay is
mounted from the initrd. So instead, we create a tmpfiles.d rule that
symlinks the best important files over. For the udev issue, we create a
drop-in in /etc that ensures udev runs after systemd-sysext.

We also can't rely on systemd presets to work, so instead parse the
preset file and statically create the service dependencies. For the
primary zfs.target we rely on an Upholds entry. Users can still disabled
unwanted services if they want.

We also removed unnecessary files:
- development files
- initramfs related scripts

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
6ccd5b6d8f board-packages: Add zfs dep
We need zfs build as a board package so that we can provide a zfs
sysext.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
e8b4b308c9 coreos/config: Add hooks for zfs ebuilds
The zfs-kmod ebuild needs KERNEL_DIR to point to the correct
/lib/modules directory.

The zfs ebuild installs two systemd unit masks to /usr/lib/systemd which
result in "dangling symlink" errors during the image build. These
systemd unit masks are only necessary for old Ubuntu systems that have
sysv-init-systemd compat wrappers.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
bda8148236 .github: Add zfs ebuilds and related eclasses to sync list
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
8e1b1517f9 portage-stable: Add zfs & zfs-kmod ebuilds
From Gentoo commit df182f2891606e757be3e8406a69f4a0e53ee324. Also import
dist-kernel-utils.eclass.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
a4da571874 profiles/coreos: Add zfs useflags
and a package.provided entry for a dependency that we don't need.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
1b4ca8ac27 coreos-base/coreos: Switch to app-alternatives/awk
We explicitly install gawk but our profile explicitly forces the gawk
useflag for app-alternatives/awk.  Some packages, like zfs, depend on
app-alternatives/awk and it also installs the awk -> gawk that the gawk
ebuild creates through pkg_postinst. So switch to app-alternatives/awk
to make the implementation cleaner.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
a134b02a48 coreos-kernel.eclass: Adapt install_build_source for compatibility
build/source, which is accidentally an empty directory, needs to be a
symlink so that Gentoo kmod ebuilds can build when setting
KERNEL_DIR=/lib/modules/.../build. They detect the proper layout with
the symlink.

The other issue is building the Nvidia driver with
SYSSRC=/lib/modules/.../build. This works on Ubuntu but fails on
Flatcar. Ubuntus build directory contains symlinks to includes from the
source tree so recreate the same layout.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
601adeb434 update_ebuilds: Fix support for rsync of eclass
For eclasses we need to skip the mkdir and trailing slash.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
1bb108e326 build_image: Allow building sysexts for an existing image
by skipping the check for an existing image directory if we're not
building an image. This makes './build_image sysext' work.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
5d5dd59102 build_image: Build sysext store after image when requested
This function is meant to prebuild certain sysexts to be released along
with each release. These will not be built into the image, but instead
can be fetched by the user on demand.

The command to build sysexts would be:

  ./build_image prod sysext

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 11:57:45 +00:00
Jeremi Piotrowski
54c8545eec build_sysext: Set SOURCE_DATE_EPOCH for reproducibility
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 10:18:17 +00:00
Jeremi Piotrowski
fa418896eb build_sysext: Use parallel jobs
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-11 10:18:17 +00:00
Mathieu Tortuyaux
009220ff54
Merge pull request #1683 from flatcar/tormath1/scaleway
oem: provide scaleway images
2024-03-11 09:34:05 +01:00
flatcar-ci
10a3624543 New version: main-3902.0.0-nightly-20240307-2100 2024-03-07 21:00:29 +00:00
Krzesimir Nowak
a67915b574
Merge pull request #1733 from flatcar/krnowak/drop-libssh2
Drop unused net-libs/libssh2 package
2024-03-07 08:43:41 +01:00
flatcar-ci
49fb69f8f0 New version: main-3901.0.0-nightly-20240306-2100 2024-03-06 21:00:27 +00:00
Krzesimir Nowak
93c4a369a8
Merge pull request #1727 from flatcar/buildbot/weekly-portage-stable-package-updates-2024-03-04
Weekly portage-stable package updates 2024-03-04
2024-03-06 16:05:13 +01:00
Krzesimir Nowak
985fb10a4f .github: Drop net-libs/libssh2 from automation 2024-03-06 15:55:44 +01:00
Krzesimir Nowak
192f646c59 net-libs/libssh2: Drop unused package 2024-03-06 15:55:02 +01:00
flatcar-ci
b2fe587e6e New version: main-3900.0.0-nightly-20240305-2100 2024-03-05 21:00:28 +00:00
Jeremi Piotrowski
18265de9d8 disk_util: Mount btrfs fs with rescue= option
It looks like 'norecovery' is deprecated and has been removed in the v6.8-rc1
kernel. Replace it with 'rescue=nologreplay', which is a replacement
implemented since v5.9. The standalone 'nologreplay' option is also deprecated.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-03-05 17:35:55 +01:00
Mathieu Tortuyaux
da4a631008
coreos-base/afterburn: enable coreos-metadata on scaleway
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2024-03-05 17:03:26 +01:00
Kai Lüke
a2aa30f487
Merge pull request #1729 from flatcar/kai/sysext-merge-contents
build_sysext: Remove any opaque directory markers
2024-03-05 17:03:15 +01:00
Kai Lueke
5aecc0a802 build_sysext: Remove any opaque directory markers
The Flatcar extension images built with build_sysext created directories
in the overlay in a way that masked contents from other layers.
Instead of fixing the way we create directories, make use of
postprocessing to avoid any similar problems show up again in the
future.
2024-03-05 17:01:43 +01:00
Kai Lüke
6c2c11db7d
Merge pull request #1707 from flatcar/kai/pxe-compat
sys-kernel/bootengine: Restore support for custom PXE OEM contents
2024-03-05 16:35:42 +01:00
Kai Lueke
e1fc7a808d .github: Build PXE image as additional VM image format
The PXE image and its helper script is a very handy way to test an image
because it does not preserve state. One can boot the same file over and
over again without having to reset the image. One can also easily pass
in additional kernel cmdline options without having to set up grub.cfg.
2024-03-05 16:35:03 +01:00
Kai Lueke
b0ce20639b sys-kernel/bootengine: Restore support for custom PXE OEM contents
This pulls in https://github.com/flatcar/bootengine/pull/88
to restore looking at the documented /usr/share/oem path in a custom
PXE OEM initrd instead of /oem.
2024-03-05 16:35:03 +01:00
Mathieu Tortuyaux
fab18fdb42
changelog: add entry
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2024-03-05 13:51:07 +01:00
Mathieu Tortuyaux
1017216cbe
oem: provide scaleway images
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2024-03-05 13:51:07 +01:00
Mathieu Tortuyaux
71b4b084e9
Merge pull request #1728 from flatcar/tormath1/ignition
sys-apps/ignition: bump to v2.18.0
2024-03-05 13:48:46 +01:00
flatcar-ci
b1f47cfd1b New version: main-3899.0.0-nightly-20240304-2100 2024-03-04 21:00:24 +00:00
Mathieu Tortuyaux
a701d71e59
changelog: update entry
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2024-03-04 17:34:53 +01:00
Mathieu Tortuyaux
9ab3018394
sys-apps/ignition: bump to 2.18.0
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2024-03-04 17:34:53 +01:00
Dongsu Park
a842366ed9
Merge pull request #1669 from flatcar/linux-6.6.17-main
Upgrade Linux Kernel for main from 6.6.16 to 6.6.17
2024-03-04 15:08:23 +01:00
Krzesimir Nowak
89559227ee changelog: Add entries 2024-03-04 13:56:02 +01:00
Krzesimir Nowak
6a5e27a89b overlay profiles: Drop accept keywords for sys-apps/util-linux 2024-03-04 13:44:45 +01:00
Krzesimir Nowak
ce8e8efe5e overlay profiles: Drop accept keywords for net-libs/libpsl 2024-03-04 13:35:18 +01:00
Krzesimir Nowak
8498f7703d overlay profiles: Drop accept keywords for net-dns/libidn2 2024-03-04 13:33:11 +01:00
Krzesimir Nowak
2b69b05259 overlay profiles: Add accept keywords for net-dns/dnsmasq 2024-03-04 13:32:52 +01:00
Krzesimir Nowak
7055f47095 overlay profiles: Drop accept keywords for net-dns/bind-tools 2024-03-04 13:06:34 +01:00
Krzesimir Nowak
2edb409b14 overlay profiles: Drop accept keywords for app-crypt/gnupg 2024-03-04 12:04:43 +01:00
Krzesimir Nowak
424110a5db overlay profiles: Drop accept keywords for app-arch/xz-utils 2024-03-04 11:50:54 +01:00
Krzesimir Nowak
06ba92970d .github: Drop dev-python/boto from automation 2024-03-04 11:38:46 +01:00
Krzesimir Nowak
21dfa86e23 overlay profiles: Unmask dev-python/boto 2024-03-04 11:37:08 +01:00
Krzesimir Nowak
f5e0e8b245 overlay dev-python/boto: Add README 2024-03-04 11:34:50 +01:00
Krzesimir Nowak
6621404d5d dev-python/boto: Move to coreos-overlay
The package is masked by upstream and marked for removal. Let's move
it to coreos-overlay then.
2024-03-04 11:28:43 +01:00
Flatcar Buildbot
211d5f9848 x11-libs/pixman: Sync with Gentoo
It's from Gentoo commit 6e86296fb3c09007ef5eaeff5ad8c946b606032c.
2024-03-04 11:06:17 +01:00
Flatcar Buildbot
5bf99584db virtual/pkgconfig: Sync with Gentoo
It's from Gentoo commit dbbb12e41a939afdfb08a75f27a1aa4654aac245.
2024-03-04 11:06:17 +01:00
Flatcar Buildbot
85361c4e52 sys-libs/zlib: Sync with Gentoo
It's from Gentoo commit 743b110bffe25c0501ae5473ad8ad68253a14f29.
2024-03-04 11:06:17 +01:00