Skip to contentSkip to conversation

KVM test: unattended setup - mount the virtio win floppy as ro

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Apr 8, 2011 KVM

lore
Share & tools
lore
#0 lore raw

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

---
 client/tests/kvm/test_setup.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
client/tests/kvm/test_setup.py +2 -1
index 1125aea..844108f 100644
@@ -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('*')
Signature · 1 line
1.7.3.4