[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Touch /.autorelabel when running under rescue mode (#491747).



---
 rescue.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/rescue.py b/rescue.py
index 6938e35..707f3be 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"
 
-- 
1.6.1.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]