From patchwork Mon Oct 26 14:16:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 55889 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9QEGgiu022268 for ; Mon, 26 Oct 2009 14:16:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751790AbZJZOQe (ORCPT ); Mon, 26 Oct 2009 10:16:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751783AbZJZOQe (ORCPT ); Mon, 26 Oct 2009 10:16:34 -0400 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 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9QEGbIh032511; Mon, 26 Oct 2009 10:16:37 -0400 Received: from localhost.localdomain (vpn-12-124.rdu.redhat.com [10.11.12.124]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9QEGZog002236; Mon, 26 Oct 2009 10:16:36 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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)