mkosi: Make MinimumVersion= a git commit

With the latest mkosi it's possible for MinimumVersion= to be a git
commit so let's start making use of that. This will make mkosi fail
if it's executed within the systemd repository and the checked out
commit is too old.

Putting the mkosi commit sha in mkosi/mkosi.conf also allows retrieving
it without having the full source tree available.

We also make a bunch of improvements to the fetch-mkosi.py script.
This commit is contained in:
Daan De Meyer
2025-04-08 13:02:54 +02:00
parent a0ce5e642f
commit 278d5bfd7e
5 changed files with 21 additions and 26 deletions

View File

@@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: systemd/mkosi@a1a7e1f63e1726d88d5770fa06b29201d73e31a3
- uses: systemd/mkosi@32105855f386c980069d134d1b0f8fea4db2129e
# Freeing up disk space with rm -rf can take multiple minutes. Since we don't need the extra free space
# immediately, we remove the files in the background. However, we first move them to a different location

View File

@@ -120,7 +120,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: systemd/mkosi@a1a7e1f63e1726d88d5770fa06b29201d73e31a3
- uses: systemd/mkosi@32105855f386c980069d134d1b0f8fea4db2129e
# Freeing up disk space with rm -rf can take multiple minutes. Since we don't need the extra free space
# immediately, we remove the files in the background. However, we first move them to a different location