diff mbox

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

Message ID 1302211283-30711-1-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues April 7, 2011, 9:21 p.m. UTC
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/test_setup.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

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('*')