summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-12-01 15:23:49 +0000
committerErik Troan <ewt@redhat.com>2000-12-01 15:23:49 +0000
commit300173a31687d24f15fa515791b06c8d3dd1b6db (patch)
tree1d7ae44cc308ea10e3c4dd24c0e2c149c83ff863 /harddrive.py
parent702ed29e22ea38753abf19065f7996ff540aaf1b (diff)
downloadanaconda-300173a31687d24f15fa515791b06c8d3dd1b6db.tar.gz
anaconda-300173a31687d24f15fa515791b06c8d3dd1b6db.tar.xz
anaconda-300173a31687d24f15fa515791b06c8d3dd1b6db.zip
losetup bits from hard drive as readonly
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/harddrive.py b/harddrive.py
index 0bb71abba..1e1880060 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -100,7 +100,7 @@ class HardDriveInstallMethod(InstallMethod):
isoImage = self.isoDir + '/' + self.path + '/' + self.discImages[cdNum]
isys.makeDevInode("loop2", "/tmp/loop2")
- isys.losetup("/tmp/loop2", isoImage)
+ isys.losetup("/tmp/loop2", isoImage, readonly = 1)
isys.mount("loop2", "/tmp/hdimage", fstype = 'iso9660', readOnly = 1);
self.tree = "/tmp/hdimage/"
@@ -207,7 +207,7 @@ class HardDriveInstallMethod(InstallMethod):
isys.makeDevInode("loop2", "/tmp/loop2")
try:
- isys.losetup("/tmp/loop2", what)
+ isys.losetup("/tmp/loop2", what, readonly = 1)
except SystemError:
continue