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.

Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
Alex Lyn 2025-08-14 17:40:01 +08:00
parent e5008fe0c1
commit e19d6a9daa

View File

@ -487,7 +487,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,