Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add BuildKey= and CacheKey= settings #3509

Merged
merged 11 commits into from
Feb 14, 2025
Merged

Conversation

DaanDeMeyer
Copy link
Contributor

@DaanDeMeyer DaanDeMeyer commented Feb 13, 2025

Let's give users more control over how many different cache and
build subdirectories we maintain by introducing CacheKey= and
BuildKey= with support for delayed specifiers.

@DaanDeMeyer DaanDeMeyer force-pushed the stuff branch 2 times, most recently from 1393b58 to 07b7ab0 Compare February 13, 2025 23:39
@DaanDeMeyer DaanDeMeyer linked an issue Feb 13, 2025 that may be closed by this pull request
@DaanDeMeyer DaanDeMeyer force-pushed the stuff branch 2 times, most recently from e549d1c to 2c696ff Compare February 14, 2025 08:10
@DaanDeMeyer DaanDeMeyer changed the title Various refactoring Add BuildKey= and CacheKey= settings Feb 14, 2025
@DaanDeMeyer DaanDeMeyer force-pushed the stuff branch 6 times, most recently from 294fe7d to 57fc7bd Compare February 14, 2025 09:23
@DaanDeMeyer DaanDeMeyer force-pushed the stuff branch 7 times, most recently from ad84985 to f0b308b Compare February 14, 2025 12:41
We already depend on 5.12 for mount_setattr(), so let's drop this
check for 5.11 now.
Let's stop showing all derived environment variables values in the
summary and let's stop passing them to the default tools and initrd
images since they'll be derived again there anyway.
Let's give users more control over how many different cache and
build subdirectories we maintain by introducing CacheKey= and
BuildKey= with support for delayed specifiers.
In mkosi-kernel, I want to add the following:

```
Linux=&b/kernel/arch/x86_64/boot/bzImage
```

So that I can run `mkosi -t none` to rebuild the kernel image and
`mkosi qemu` to boot into it. To make this work, let's add support
for a delayed specifier to Linux= that expands to the finalized
build directory.
@DaanDeMeyer DaanDeMeyer merged commit 13eb5b6 into systemd:main Feb 14, 2025
35 checks passed
@DaanDeMeyer DaanDeMeyer deleted the stuff branch February 14, 2025 14:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add CacheKey config to override cache_tree_paths
2 participants