]> git.proxmox.com Git - qemu-server.git/commitdiff
config2cmd: make missing EFI disk warning more visible
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 31 Aug 2022 12:46:09 +0000 (14:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Sep 2022 09:32:23 +0000 (11:32 +0200)
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm

index c706653b3a36fc9cb1e584d2ee1d517c0e77de9c..4e85dd02c43dba598b6f92a01a75d1d4a9f301e0 100644 (file)
@@ -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';