Skip to content

Commit

Permalink
fix: do not inherit xen extension for specialisation
Browse files Browse the repository at this point in the history
Makes it possible to have system specialisation without xen, but now,
only the toplevel system derivation can have xen installed, xen
extension is always ignored for specialisations.

Issue: DeterminateSystems/bootspec#147
  • Loading branch information
CertainLach committed Feb 5, 2025
1 parent 5512b16 commit f74c15f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust/tool/shared/src/generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ impl Generation {
spec: ExtendedBootJson {
bootspec: bootspec.clone(),
lanzaboote_extension: self.spec.lanzaboote_extension.clone(),
xen_extension: self.spec.xen_extension.clone(),
// TODO: It is only possible to use xen with toplevel system derivation, as there is no
// extension fields for bootspec generation anymore:
// https://github.com/DeterminateSystems/bootspec/issues/147
xen_extension: None,
},
..self.clone()
}
Expand Down

0 comments on commit f74c15f

Please sign in to comment.