refactor(qemu): report initramfs progress through the sink

create_initramfs emits Progress events instead of drawing a spinner
inside the library; the cpio walker counts the entries it visits so
the verbose summary no longer reads the count off a progress bar.
This commit is contained in:
2026-10-03 00:05:47 +02:00
parent 71768f71d7
commit 1cfcf0e433
2 changed files with 51 additions and 45 deletions
+10 -7
View File
@@ -73,13 +73,16 @@ fn main() -> Result<()> {
Some(args.command.clone())
};
let result = qemu_vm::launch_qemu(qemu_vm::QemuConfig {
kernel_path,
rootfs_path: rootfs.dir().to_path_buf(),
memory: args.memory.clone(),
arch: arch.clone(),
command,
});
let result = qemu_vm::launch_qemu(
qemu_vm::QemuConfig {
kernel_path,
rootfs_path: rootfs.dir().to_path_buf(),
memory: args.memory.clone(),
arch: arch.clone(),
command,
},
&ecr::NoProgress,
);
// Cleanup happens automatically via tempfile
if result.is_ok() {