[pve-devel] [PATCH qemu-server 1/2] config2cmd: make missing EFI disk warning more visible

Fiona Ebner f.ebner at proxmox.com
Wed Aug 31 14:46:09 CEST 2022


Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---

(build-)dependency bump for libpve-common-perl >= 7.1-4 needed

 PVE/QemuServer.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index c706653b..4e85dd02 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -36,6 +36,7 @@ use PVE::INotify;
 use PVE::JSONSchema qw(get_standard_option parse_property_string);
 use PVE::ProcFSTools;
 use PVE::PBSClient;
+use PVE::RESTEnvironment qw(log_warn);
 use PVE::RPCEnvironment;
 use PVE::Storage;
 use PVE::SysFSTools;
@@ -3611,7 +3612,7 @@ sub config_to_command {
 
 	    $read_only_str = ',readonly=on' if drive_is_read_only($conf, $d);
 	} else {
-	    warn "no efidisk configured! Using temporary efivars disk.\n";
+	    log_warn("no efidisk configured! Using temporary efivars disk.");
 	    $path = "/tmp/$vmid-ovmf.fd";
 	    PVE::Tools::file_copy($ovmf_vars, $path, -s $ovmf_vars);
 	    $format = 'raw';
-- 
2.30.2






More information about the pve-devel mailing list