-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The images that are built on the runners directly with updated mkosi do not boot on libvirt VMs, so we need to revert and revisit this at a later point. Revert "CI: don't install uefi deps on s390x podvm builds" This reverts commit c1b26f1. Revert "ci: bump azure podvm build workflow to 24.04" This reverts commit 3ebb741. Revert "ci: use profile instead of marker files" This reverts commit 6e25be3. Revert "ci: install mkosi from repository for x86_64" This reverts commit e7bd8ba. Signed-off-by: Magnus Kulke <magnuskulke@microsoft.com>
- Loading branch information
Showing
13 changed files
with
176 additions
and
60 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
description = "Cloud API Adaptor for Confidential Containers"; | ||
|
||
inputs = { | ||
nixpkgsUnstable = { | ||
url = "github:nixos/nixpkgs/nixos-unstable"; | ||
}; | ||
flake-utils = { | ||
url = "github:numtide/flake-utils"; | ||
}; | ||
}; | ||
|
||
outputs = | ||
{ self | ||
, nixpkgsUnstable | ||
, flake-utils | ||
}: | ||
flake-utils.lib.eachDefaultSystem | ||
(system: | ||
let | ||
pkgsUnstable = import nixpkgsUnstable { inherit system; }; | ||
in | ||
{ | ||
devShells = { | ||
# Shell for building podvm images with mkosi. | ||
podvm-mkosi = pkgsUnstable.mkShell { | ||
nativeBuildInputs = with pkgsUnstable; [ | ||
btrfs-progs | ||
cryptsetup | ||
dnf5 | ||
dosfstools | ||
mkosi-full | ||
mtools | ||
rpm | ||
squashfsTools | ||
util-linux | ||
zstd | ||
e2fsprogs # remove when switching to squashFS | ||
]; | ||
}; | ||
}; | ||
|
||
formatter = nixpkgsUnstable.legacyPackages.${system}.nixpkgs-fmt; | ||
}); | ||
} |
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
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
7 changes: 6 additions & 1 deletion
7
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
7 changes: 6 additions & 1 deletion
7
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,6 +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 |
7 changes: 5 additions & 2 deletions
7
src/cloud-api-adaptor/podvm-mkosi/mkosi.presets/system/mkosi.conf.d/fedora-debug-aux.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,9 +1,12 @@ | ||
[Match] | ||
Distribution=fedora | ||
Profile=debug | ||
|
||
PathExists=../../resources/buildDebugImage | ||
|
||
# Overwrite default ssh config, but conflict with | ||
# cloud-init which is installed for s390x. | ||
Architecture=!s390x | ||
#Architecture=!s390x | ||
PathExists=../../resources/buildBootableImage | ||
|
||
[Content] | ||
ExtraTrees=../../mkosi.skeleton-debug |
3 changes: 2 additions & 1 deletion
3
src/cloud-api-adaptor/podvm-mkosi/mkosi.presets/system/mkosi.conf.d/fedora-debug-keys.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
4 changes: 3 additions & 1 deletion
4
src/cloud-api-adaptor/podvm-mkosi/mkosi.presets/system/mkosi.conf.d/fedora-debug.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
7 changes: 6 additions & 1 deletion
7
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
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