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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user