5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

always copy OVMF_VARS-pure-efi.fd file

To avoid the impression that we can store BIOS settings. They also
gets lost when we migrate the VM.
This commit is contained in:
Dietmar Maurer 2015-12-10 11:11:02 +01:00
parent 3edb45e749
commit 2bd70893fb

View File

@ -2698,7 +2698,7 @@ sub config_to_command {
my $ovmfvar = "OVMF_VARS-pure-efi.fd";
my $ovmfvar_src = "/usr/share/kvm/$ovmfvar";
my $ovmfvar_dst = "/tmp/$vmid-$ovmfvar";
copy $ovmfvar_src,$ovmfvar_dst if !(-e $ovmfvar_dst);
PVE::Tools::file_copy($ovmfvar_src, $ovmfvar_dst, 256*1024);
push @$cmd, '-drive', "if=pflash,format=raw,readonly,file=/usr/share/kvm/OVMF-pure-efi.fd";
push @$cmd, '-drive', "if=pflash,format=raw,file=$ovmfvar_dst";
}