Commit graph

12 commits

Author SHA1 Message Date
Dorian Stoll 69db543758
pkg: fedora: Update to 6.8 2024-03-16 23:07:58 +01:00
Dorian Stoll fcdab44b7f
fixup! Add support for Fedora 40 2024-03-01 12:34:41 +01:00
Dorian Stoll 23e15cea65
pkg: debian: Fix meta package dependencies after adjusting LOCALVERSION 2023-10-29 11:48:14 +01:00
Dorian Stoll 03b1eb13c3
pkg: debian: Add the package revision to LOCALVERSION
Right now two builds of the same kernel version will install into the
same directory, e.g. /lib/modules/6.5.6-surface.

This doesn't really ultimately cause any issues, but having the build
number in uname -r and unique installation targets is good practice.
2023-10-28 09:35:41 +02:00
Dorian Stoll b9155febc2
pkg: debian: Sort patches before applying them 2023-08-01 21:33:34 +02:00
Dorian Stoll 01f7028bcf
pkg: Switch from find -exec to find | xargs
This ensures that the script fails early if one of the subcommands fails
2023-08-01 21:25:36 +02:00
Dorian Stoll bc46d59137
fixup! pkg: debian: Fix setting LOCALVERSION 2023-07-28 22:31:21 +02:00
Dorian Stoll a39ec0f6e6
pkg: debian: Fix setting LOCALVERSION 2023-07-28 19:31:26 +02:00
Dorian Stoll 348af13d4e
pkg: repo: Fix generating random strings
The pipefail option causes the script to terminate with an error,
because the pipes are closed while they are still being written
to from /dev/urandom.

It would be possible to disable pipefail locally for this command,
but using openssl seems easier and more robust anyways.
2023-07-25 12:35:37 +02:00
Dorian Stoll ffa8b7c606
pkg: debian: Move to script based workflow
For the future we should consider adapting the Fedora python scripts
for Debian and move the logic out of the CI script into a dedicated
packaging script.
2023-07-25 09:36:22 +02:00
Dorian Stoll 854c619a8f
pkg: arch: Move to script based workflow 2023-07-25 09:36:18 +02:00
Dorian Stoll 7c7ba21c90
pkg: fedora: Create containers manually, reclaim space from the runner
The GitHub runners usually have about 14 GB of free space. This is
not enough to build a full Fedora kernel with debug symbols.

Disabling the debug symbols is not an option, because they are needed
to generate data for BPF programs, and because it would mean more
patches to the spec file which I would like to avoid.

The runners contain a bunch of software that is entirely useless for
our purposes. For example, a full .NET distribution, the entire Android
SDK, and a bunch of cached container images that arent Fedora.

However, with GitHubs container directive it is not possible to remove
these, because no custom code is ever executed on the runner itself.

To execute code on the runner, the container has to be created and used
manually. To simplify this, all of the actual logic has been moved to a
dedicated script, similar to how the CI on iptsd is set up.
2023-07-25 09:36:13 +02:00