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:
parent
3edb45e749
commit
2bd70893fb
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user