summaryrefslogtreecommitdiffstats
path: root/storage/formats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2010-03-17 12:26:15 -0500
committerDavid Lehman <dlehman@redhat.com>2010-03-17 13:14:31 -0500
commit771bf037882d2d5459263d832661acca28c764a4 (patch)
tree95034c76c4f96b0e4a8975a7b9d9b2c76c66a68c /storage/formats
parentfa49eaf9a16066793a6c7cf284b7d779617af371 (diff)
downloadanaconda-771bf037882d2d5459263d832661acca28c764a4.tar.gz
anaconda-771bf037882d2d5459263d832661acca28c764a4.tar.xz
anaconda-771bf037882d2d5459263d832661acca28c764a4.zip
Don't try to set selinux context for read-only mountpoints.
Diffstat (limited to 'storage/formats')
-rw-r--r--storage/formats/fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 22291d617..23f5d98e2 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -624,7 +624,7 @@ class FS(DeviceFormat):
if rc:
raise FSError("mount failed: %s" % rc)
- if flags.selinux:
+ if flags.selinux and "ro" not in options.split(","):
ret = isys.resetFileContext(mountpoint, chroot)
log.info("set SELinux context for newly mounted filesystem "
"root at %s to %s" %(mountpoint, ret))