lanzaboot: include init in cmdline

This commit is contained in:
nikstur 2022-11-24 16:51:43 +01:00
parent aa86ae9e30
commit 858c0befb3
1 changed files with 7 additions and 1 deletions

View File

@ -25,11 +25,17 @@ pub fn install(
let esp_paths = EspPaths::new(&bootspec_doc.extension.esp);
println!("Assembling lanzaboote image...");
let mut kernel_cmdline: Vec<String> = vec![bootspec_doc
.init
.into_os_string()
.into_string()
.expect("Failed to convert init to string")];
kernel_cmdline.extend(bootspec_doc.kernel_params);
let lanzaboote_image = pe::assemble_image(
lanzaboote_stub,
&bootspec_doc.extension.os_release,
&bootspec_doc.kernel_params,
&kernel_cmdline,
&esp_paths.kernel,
&esp_paths.initrd,
)