summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-04-15 15:01:01 -0400
committerChris Lumens <clumens@redhat.com>2009-04-16 09:36:13 -0400
commita3f34535549c4c3277966d16f4084c5aab9cf94b (patch)
treec95196b90b8db52be3aeab210ea6694c256c6191 /rescue.py
parentea4e8ffea9692624769c4a8a1a65d141ef92d43e (diff)
downloadanaconda-a3f34535549c4c3277966d16f4084c5aab9cf94b.tar.gz
anaconda-a3f34535549c4c3277966d16f4084c5aab9cf94b.tar.xz
anaconda-a3f34535549c4c3277966d16f4084c5aab9cf94b.zip
Touch /.autorelabel when running under rescue mode (#491747).
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rescue.py b/rescue.py
index 6938e354b..707f3bea4 100644
--- a/rescue.py
+++ b/rescue.py
@@ -339,6 +339,9 @@ def runRescue(anaconda, instClass):
except Exception, e:
log.error("error mounting selinuxfs: %s" %(e,))
+ fd = open("%s/.autorelabel" % anaconda.rootPath, "w+")
+ fd.close()
+
# set a library path to use mounted fs
os.environ["LD_LIBRARY_PATH"] = "/lib:/usr/lib:/usr/X11R6/lib:/lib:/mnt/usr/lib:/mnt/sysimage/lib:/mnt/sysimage/usr/lib:/mnt/sysimage/usr/X11R6/lib"