From 8e28be785c2d5f2844c103ee0b6af88459e5bfe4 Mon Sep 17 00:00:00 2001 From: ma Date: Wed, 14 Feb 2024 10:07:28 +0100 Subject: [PATCH] #13 include pflash devices (bios) by default --- libqmpbackup/vm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libqmpbackup/vm.py b/libqmpbackup/vm.py index ae95ef5..9916b23 100644 --- a/libqmpbackup/vm.py +++ b/libqmpbackup/vm.py @@ -45,7 +45,11 @@ def get_block_devices(blockinfo, argv, excluded_disks, included_disks): inserted = device["inserted"] base_filename = os.path.basename(inserted["image"]["filename"]) - if inserted["drv"] == "raw" and not argv.include_raw: + if ( + inserted["drv"] == "raw" + and not argv.include_raw + and not device["device"].startswith("pflash") + ): log.warning( "Excluding device with raw format from backup: [%s:%s]", device["device"],