[pve-devel] [PATCH container] fix #2104: config "features: mount" regex pattern

Oguz Bektas o.bektas at proxmox.com
Tue Feb 19 13:52:01 CET 2019


this adds an underscore '_' character to the regex match for "features:
mount", which allows rpc_pipefs to be parsed correctly.

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 src/PVE/LXC/Config.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 7274e3a..7762533 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -284,7 +284,7 @@ my $features_desc = {
 	    ." permission of the devices cgroup, mounting an NFS file system can"
 	    ." block the host's I/O completely and prevent it from rebooting, etc.",
 	format_description => 'fstype;fstype;...',
-	pattern => qr/[a-zA-Z0-9; ]+/,
+	pattern => qr/[a-zA-Z0-9_; ]+/,
     },
     nesting => {
 	optional => 1,
-- 
2.11.0





More information about the pve-devel mailing list