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

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

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux