Skip to contentSkip to conversation

KVM test: Unattended install: Mount isos as read only

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Oct 26, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: Unattended install: Mount isos as read only

Sometimes CD images can be located on read only NFS shares, so allways pass the ro option to the CD mount command on the unattended.py setup script.

---
 client/tests/kvm/scripts/unattended.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
client/tests/kvm/scripts/unattended.py +2 -2
index febea6e..2667649 100755
@@ -136,8 +136,8 @@ class UnattendedInstall(object):
         pxe_dest = os.path.join(self.tftp_root, 'pxelinux.0')
         shutil.copyfile(pxe_file, pxe_dest)
 
-        m_cmd = 'mount -t iso9660 -v -o loop %s %s' % (self.cdrom_iso,
-                                                       self.cdrom_mount)
+        m_cmd = 'mount -t iso9660 -v -o loop,ro %s %s' % (self.cdrom_iso,
+                                                          self.cdrom_mount)
         if os.system(m_cmd):
             raise SetupError('Could not mount CD image %s.' % self.cdrom_iso)
 
Signature · 1 line
1.6.2.5