Skip to content

Commit

Permalink
check for x86
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Feb 23, 2024
1 parent dbb5676 commit 1325eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
test-make-eif = lib.mkEif {
name = "test";
ramdisks = [
(lib.mkSysRamdisk { init = self.lib.aarch64-linux.blobs.init; nsmKo = self.lib.aarch64-linux.blobs.nsmKo; })
(lib.mkSysRamdisk { init = self.lib.x86_64-linux.blobs.init; nsmKo = self.lib.x86_64-linux.blobs.nsmKo; })
(lib.mkUserRamdisk { entrypoint = "none"; env = ""; rootfs = pkgs.writeTextDir "etc/file" "hello world!"; })
];
kernel = self.lib.aarch64-linux.blobs.kernel;
Expand All @@ -223,7 +223,7 @@
doCheck = true;
checkPhase = ''
PCR0=$(jq -r < ./pcr.json ' .PCR0 ')
if echo "$PCR0" | grep -qv 'a15c9d65991e44f63827e506d519b9107cc81844a8745a315a1d543b8788ea58254c7b17bc0003d2fa7322142a47e007'
if echo "$PCR0" | grep -qv '7b93be4b98ac97f444f4bd80d5a3c86ad34d0382ba7fb9b3d0001d9e55c360f067bab523113ef565f277ecdc2dde20c2'
then
echo "PCR0 did not match, got instead:" $PCR0
exit -1
Expand Down

0 comments on commit 1325eda

Please sign in to comment.