[pve-devel] [PATCH container 3/4] cleanup: avoid an -o '' empty-string option

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Mar 18 10:11:09 CET 2016


---
 src/PVE/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index d4645c2..3ed5d92 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -1044,7 +1044,7 @@ sub mountpoint_mount {
     }
     my $readonly = $mountpoint->{ro};
 
-    my @extra_opts = ('-o', $optstring);
+    my @extra_opts = ('-o', $optstring) if $optstring;
 
     if ($storage) {
 
-- 
2.1.4





More information about the pve-devel mailing list