[virt-tools-list] [virt-manager] [PATCHv2 2/2] Set default Filesystem type for LXC to "Mount"
Radostin Stoyanov
rstoyanov1 at gmail.com
Mon Jun 19 08:18:48 UTC 2017
---
tests/cli-test-xml/compare/virt-install-fs-default.xml | 2 +-
virtinst/devicefilesystem.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/cli-test-xml/compare/virt-install-fs-default.xml b/tests/cli-test-xml/compare/virt-install-fs-default.xml
index 201924a..feccba5 100644
--- a/tests/cli-test-xml/compare/virt-install-fs-default.xml
+++ b/tests/cli-test-xml/compare/virt-install-fs-default.xml
@@ -13,7 +13,7 @@
</features>
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
- <filesystem>
+ <filesystem type="mount" accessmode="mapped">
<source dir="/source"/>
<target dir="/"/>
</filesystem>
diff --git a/virtinst/devicefilesystem.py b/virtinst/devicefilesystem.py
index fee9e87..5759024 100644
--- a/virtinst/devicefilesystem.py
+++ b/virtinst/devicefilesystem.py
@@ -133,8 +133,8 @@ class VirtualFilesystem(VirtualDevice):
def set_defaults(self, guest):
ignore = guest
- if self.conn.is_qemu() or self.conn.is_test():
- # type=mount is the libvirt qemu default. But hardcode it
+ if self.conn.is_qemu() or self.conn.is_lxc() or self.conn.is_test():
+ # type=mount is the libvirt default. But hardcode it
# here since we need it for the accessmode check
if self.type is None or self.type == self.TYPE_DEFAULT:
self.type = self.TYPE_MOUNT
--
2.9.4
_______________________________________________
virt-tools-list mailing list
virt-tools-list at redhat.com
https://www.redhat.com/mailman/listinfo/virt-tools-list
More information about the virt-tools-list
mailing list