-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
podvm-mkosi: fix Architecture cannot be used in Match
mkosi version in nix is 17.1, which doesn't support Architecture in [Match] As a workaround, use a flag files instead Signed-off-by: Lei Li <[email protected]> Signed-off-by: Lei Li <[email protected]>
- Loading branch information
Lei Li
authored and
Qi Feng Huo
committed
Mar 29, 2024
1 parent
a554e6d
commit d12a5be
Showing
4 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/cloud-api-adaptor/podvm-mkosi/mkosi.presets/initrd/mkosi.conf.d/fedora-s390x.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/cloud-api-adaptor/podvm-mkosi/mkosi.presets/system/mkosi.conf.d/fedora-bootable.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
[Match] | ||
Distribution=fedora | ||
|
||
Architecture=!s390x | ||
# mkosi version in nix is 17.1, | ||
# which doesn't support Architecture in [Match] | ||
# As a workaround, use a flag file instead. | ||
#Architecture=!s390x | ||
PathExists=../../resources/buildBootableImage | ||
|
||
[Content] | ||
Packages=systemd-boot |
6 changes: 5 additions & 1 deletion
6
src/cloud-api-adaptor/podvm-mkosi/mkosi.presets/system/mkosi.conf.d/fedora-s390x.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters