FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 03-19-2009, 01:41 PM
Martin Sivak
 
Default Do not traceback at the very beginning of rescue mode

---
anaconda | 9 +++++++++
rescue.py | 6 +++---
2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/anaconda b/anaconda
index a4ed591..3bbf0fe 100755
--- a/anaconda
+++ b/anaconda
@@ -778,8 +778,17 @@ if __name__ == "__main__":
if opts.ksfile:
anaconda.isKickstart = True
instClass.setInstallData(anaconda)
+
+ #we need waitWindow valid in processKickstartFile. because storage uses it
+ from snack import *
+ screen = SnackScreen()
+ anaconda.intf = rescue.RescueInterface(screen)
+
kickstart.processKickstartFile(anaconda, opts.ksfile)

+ anaconda.intf = None
+ screen.finish()
+
# command line 'nomount' overrides kickstart /same for vnc/
anaconda.rescue_mount = not (opts.rescue_nomount or anaconda.id.ksdata.rescue.nomount)

diff --git a/rescue.py b/rescue.py
index aeceb98..688266f 100644
--- a/rescue.py
+++ b/rescue.py
@@ -223,15 +223,15 @@ def runRescue(anaconda, instClass):

sys.exit(0)

+ screen = SnackScreen()
+ anaconda.intf = RescueInterface(screen)
+
if anaconda.isKickstart:
if anaconda.id.ksdata.rescue and anaconda.id.ksdata.rescue.romount:
readOnly = 1
else:
readOnly = 0
else:
- screen = SnackScreen()
- anaconda.intf = RescueInterface(screen)
-
# prompt to see if we should try and find root filesystem and mount
# everything in /etc/fstab on that root
rc = ButtonChoiceWindow(screen, _("Rescue"),
--
1.5.4.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-19-2009, 05:01 PM
Hans de Goede
 
Default Do not traceback at the very beginning of rescue mode

Looks good,

Regards,

Hans


Martin Sivak wrote:

---
anaconda | 9 +++++++++
rescue.py | 6 +++---
2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/anaconda b/anaconda
index a4ed591..3bbf0fe 100755
--- a/anaconda
+++ b/anaconda
@@ -778,8 +778,17 @@ if __name__ == "__main__":
if opts.ksfile:
anaconda.isKickstart = True
instClass.setInstallData(anaconda)
+
+ #we need waitWindow valid in processKickstartFile. because storage uses it
+ from snack import *
+ screen = SnackScreen()
+ anaconda.intf = rescue.RescueInterface(screen)
+
kickstart.processKickstartFile(anaconda, opts.ksfile)

+ anaconda.intf = None

+ screen.finish()
+
# command line 'nomount' overrides kickstart /same for vnc/
anaconda.rescue_mount = not (opts.rescue_nomount or anaconda.id.ksdata.rescue.nomount)

diff --git a/rescue.py b/rescue.py

index aeceb98..688266f 100644
--- a/rescue.py
+++ b/rescue.py
@@ -223,15 +223,15 @@ def runRescue(anaconda, instClass):

sys.exit(0)

+ screen = SnackScreen()

+ anaconda.intf = RescueInterface(screen)
+
if anaconda.isKickstart:
if anaconda.id.ksdata.rescue and anaconda.id.ksdata.rescue.romount:
readOnly = 1
else:
readOnly = 0
else:
- screen = SnackScreen()
- anaconda.intf = RescueInterface(screen)
-
# prompt to see if we should try and find root filesystem and mount
# everything in /etc/fstab on that root
rc = ButtonChoiceWindow(screen, _("Rescue"),


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

Thread Tools




All times are GMT. The time now is 07:47 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org