runtime-rs: Change the initdata device driver with block_device_driver

Currently, we change vm_rootfs_driver as the initdata device driver
with block_device_driver.

Fixes #11697

Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
Alex Lyn
2025-08-19 20:33:35 +08:00
parent 5cc028a8b1
commit e430727cb6

View File

@@ -470,7 +470,7 @@ impl VirtSandbox {
sl!(),
"initdata push data into compressed block: {:?}", &image_path
);
let block_driver = &hypervisor_config.boot_info.vm_rootfs_driver;
let block_driver = &hypervisor_config.blockdev_info.block_device_driver;
let block_config = BlockConfig {
path_on_host: image_path.display().to_string(),
is_readonly: true,