tests: adopt bootspec v1 format
This commit is contained in:
parent
48ff4cb7c4
commit
9fe979d2d6
|
@ -54,7 +54,7 @@ let
|
|||
return f'/boot/EFI/nixos/{store_dir}-{filename}.efi'
|
||||
|
||||
machine.start()
|
||||
bootspec = json.loads(machine.succeed("cat /run/current-system/boot.json")).get('v1')
|
||||
bootspec = json.loads(machine.succeed("cat /run/current-system/boot.json")).get('org.nixos.bootspec.v1')
|
||||
assert bootspec is not None, "Unsupported bootspec version!"
|
||||
src_path = ${path.src}
|
||||
dst_path = ${path.dst}
|
||||
|
|
|
@ -39,7 +39,7 @@ pub fn setup_generation_link_from_toplevel(
|
|||
version: u64,
|
||||
) -> Result<PathBuf> {
|
||||
let bootspec = json!({
|
||||
"v1": {
|
||||
"org.nixos.bootspec.v1": {
|
||||
"init": format!("init-v{}", version),
|
||||
"initrd": toplevel.join("initrd"),
|
||||
"kernel": toplevel.join("kernel"),
|
||||
|
@ -56,11 +56,8 @@ pub fn setup_generation_link_from_toplevel(
|
|||
"label": "LanzaOS",
|
||||
"toplevel": toplevel,
|
||||
"system": "x86_64-linux",
|
||||
"specialisation": {},
|
||||
"extensions": {
|
||||
"lanzaboote": { "osRelease": toplevel.join("os-release") }
|
||||
}
|
||||
}
|
||||
},
|
||||
"org.nixos-community.lanzaboote": { "osRelease": toplevel.join("os-release") }
|
||||
});
|
||||
|
||||
let generation_link_path = profiles_directory.join(format!("system-{}-link", version));
|
||||
|
|
Loading…
Reference in New Issue