mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-10 01:18:01 +03:00
snapshot rollback: use pc-i440fx-1.4 as default
This commit is contained in:
parent
6dbe8b459b
commit
d8b916fdb0
@ -4340,7 +4340,9 @@ sub snapshot_rollback {
|
||||
$conf = &$snapshot_apply_config($conf, $snap);
|
||||
$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
|
||||
# in the original config.
|
||||
delete $conf->{machine} if $snap->{vmstate} && !$has_machine_config;
|
||||
|
Loading…
Reference in New Issue
Block a user