[PATCH 1/9] KVM test: unattended setup - mount the virtio win floppy as ro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 client/tests/kvm/test_setup.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/test_setup.py b/client/tests/kvm/test_setup.py
index 1125aea..844108f 100644
--- a/client/tests/kvm/test_setup.py
+++ b/client/tests/kvm/test_setup.py
@@ -122,7 +122,8 @@ class FloppyDisk(Disk):
 
         pwd = os.getcwd()
         try:
-            m_cmd = 'mount -o loop %s %s' % (virtio_floppy, virtio_mount)
+            # We don't need to write stuff to the image, so mount ro
+            m_cmd = 'mount -o loop,ro %s %s' % (virtio_floppy, virtio_mount)
             utils.run(m_cmd)
             os.chdir(virtio_mount)
             path_list = glob.glob('*')
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux