From: Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: Unattended install: Mount isos as read only Date: Mon, 26 Oct 2009 12:16:35 -0200 Message-ID: <1256566595-4804-1-git-send-email-lmr@redhat.com> Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:9000 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751766AbZJZOQe (ORCPT ); Mon, 26 Oct 2009 10:16:34 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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. Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/scripts/unattended.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm/scripts/unattended.py b/client/tests/kvm/scripts/unattended.py index febea6e..2667649 100755 --- a/client/tests/kvm/scripts/unattended.py +++ b/client/tests/kvm/scripts/unattended.py @@ -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) -- 1.6.2.5