summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-11-21 18:24:43 +0000
committerErik Troan <ewt@redhat.com>2000-11-21 18:24:43 +0000
commite41000878d27121c895345cdeb8cfb03c07762c3 (patch)
tree7727dc6aa0eb1562eaad2d4d3c6f35b774bc838c /harddrive.py
parent028d6002f4d8038a39df1408e72d890d3398b82a (diff)
downloadanaconda-e41000878d27121c895345cdeb8cfb03c07762c3.tar.gz
anaconda-e41000878d27121c895345cdeb8cfb03c07762c3.tar.xz
anaconda-e41000878d27121c895345cdeb8cfb03c07762c3.zip
mount all media read only
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/harddrive.py b/harddrive.py
index fe1fb0613..0bb71abba 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -29,7 +29,8 @@ class OldHardDriveInstallMethod(InstallMethod):
self.tree = s[1] + "/"
return
- isys.mount(self.device, "/tmp/hdimage", fstype = self.fstype);
+ isys.mount(self.device, "/tmp/hdimage", fstype = self.fstype,
+ readOnly = 1);
self.tree = "/tmp/hdimage/"
self.isMounted = 1
@@ -101,7 +102,7 @@ class HardDriveInstallMethod(InstallMethod):
isys.makeDevInode("loop2", "/tmp/loop2")
isys.losetup("/tmp/loop2", isoImage)
- isys.mount("loop2", "/tmp/hdimage", fstype = 'iso9660');
+ isys.mount("loop2", "/tmp/hdimage", fstype = 'iso9660', readOnly = 1);
self.tree = "/tmp/hdimage/"
self.mediaIsMounted = cdNum
@@ -131,7 +132,8 @@ class HardDriveInstallMethod(InstallMethod):
self.isoDir = s[1] + "/"
return
- isys.mount(self.device, "/tmp/isodir", fstype = self.fstype);
+ isys.mount(self.device, "/tmp/isodir", fstype = self.fstype,
+ readOnly = 1);
self.isoDir = "/tmp/isodir/"
self.isoDirIsMounted = 1
@@ -210,7 +212,8 @@ class HardDriveInstallMethod(InstallMethod):
continue
try:
- isys.mount("loop2", "/mnt/cdimage", fstype = "iso9660")
+ isys.mount("loop2", "/mnt/cdimage", fstype = "iso9660",
+ readOnly = 1)
for num in range(1, 10):
discTag = "/mnt/cdimage/.disc%d-%s" % (num, arch)
if os.access(discTag, os.R_OK):