Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   rescue.py will execute runPostScripts if we've booted with the nomount option and kickstart (http://www.linux-archive.org/ubuntu-user/129969-rescue-py-will-execute-runpostscripts-if-weve-booted-nomount-option-kickstart.html)

Alexander Todorov 07-23-2008 07:18 AM

rescue.py will execute runPostScripts if we've booted with the nomount option and kickstart
 
diff --git a/rescue.py b/rescue.py
index 021c79f..00fd8b8 100644
--- a/rescue.py
+++ b/rescue.py
@@ -277,7 +277,15 @@ def runRescue(anaconda, instClass):

# Early shell access with no disk access attempts
if not anaconda.rescue_mount:
- runShell()
+ # support ks.cfg %post with --nomount only because it's easier
+ # the %post should be responsible for mounting all needed file systems
+ # NOTE: 1st script must be bash or simple python as nothing else might
be available in the rescue image
+ if anaconda.isKickstart:
+ from kickstart import runPostScripts
+ runPostScripts(anaconda)
+ else:
+ runShell()
+
sys.exit(0)

screen = SnackScreen()

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


All times are GMT. The time now is 06:10 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.