[virt-tools-list] [virt-manager] [PATCH 2/2] Set default Filesystem type for LXC to "Mount"

Radostin Stoyanov rstoyanov1 at gmail.com
Fri Jun 16 10:32:47 UTC 2017


---
 virtinst/devicefilesystem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/devicefilesystem.py b/virtinst/devicefilesystem.py
index be8f841..5c1645f 100644
--- a/virtinst/devicefilesystem.py
+++ b/virtinst/devicefilesystem.py
@@ -123,7 +123,7 @@ class VirtualFilesystem(VirtualDevice):
     def set_defaults(self, guest):
         ignore = guest
 
-        if self.conn.is_qemu() or self.conn.is_test():
+        if self.conn.is_qemu() or self.conn.is_lxc() or self.conn.is_test():
             # type=mount is the libvirt qemu default. But hardcode it
             # here since we need it for the accessmode check
             if self.type is None or self.type == self.TYPE_DEFAULT:
-- 
2.9.4




More information about the virt-tools-list mailing list