[pve-devel] [PATCH qemu 1/2] fix #2190: allow multiple words separated by whitespaces in SMBIOS manufacturer string

Christian Ebner c.ebner at proxmox.com
Thu May 9 10:28:38 CEST 2019


On some occasions, e.g. license checking, the manufacturer string for the
SMBIOS configuration has to allow for multiple words separated by whitespaces.
https://forum.proxmox.com/threads/proxmox-and-windows-rok-license-for-dell.53236/

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 2ca5f6e..56b9e50 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2383,7 +2383,7 @@ my $smbios1_fmt = {
     },
     manufacturer => {
 	type => 'string',
-	pattern => '\S+',
+	pattern => '\S+(\s+\S+)*',
 	format_description => 'string',
         description => "Set SMBIOS1 manufacturer.",
 	optional => 1,
-- 
2.11.0




More information about the pve-devel mailing list