mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-09-06 17:44:22 +03:00
snapshot rollback: use pc-i440fx-1.4 as default
This commit is contained in:
@@ -4340,7 +4340,9 @@ sub snapshot_rollback {
|
|||||||
$conf = &$snapshot_apply_config($conf, $snap);
|
$conf = &$snapshot_apply_config($conf, $snap);
|
||||||
$conf->{parent} = $snapname;
|
$conf->{parent} = $snapname;
|
||||||
|
|
||||||
$forcemachine = $conf->{machine};
|
# Note: old code did not store 'machine', so we try to be smart
|
||||||
|
# and guess the snapshot was generated with kvm 1.4 (pc-i440fx-1.4).
|
||||||
|
$forcemachine = $conf->{machine} || 'pc-i440fx-1.4';
|
||||||
# we remove the 'machine' configuration if not explicitly specified
|
# we remove the 'machine' configuration if not explicitly specified
|
||||||
# in the original config.
|
# in the original config.
|
||||||
delete $conf->{machine} if $snap->{vmstate} && !$has_machine_config;
|
delete $conf->{machine} if $snap->{vmstate} && !$has_machine_config;
|
||||||
|
Reference in New Issue
Block a user