summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-19 22:00:53 +0000
committerMatt Wilson <msw@redhat.com>2000-01-19 22:00:53 +0000
commit68a457cf0e0c0eb08daccbf6f47fe00fcd365080 (patch)
treebff3484fe55097936c6bfb91d9d52e5b6a3bf5ac /text.py
parente184943029c2cd14b6efd15c59993d77898c6eb9 (diff)
downloadanaconda-68a457cf0e0c0eb08daccbf6f47fe00fcd365080.tar.gz
anaconda-68a457cf0e0c0eb08daccbf6f47fe00fcd365080.tar.xz
anaconda-68a457cf0e0c0eb08daccbf6f47fe00fcd365080.zip
changed where fstab gets created for upgrades and kickstarts
Diffstat (limited to 'text.py')
-rw-r--r--text.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/text.py b/text.py
index 1b5c8ce51..77d9f8c38 100644
--- a/text.py
+++ b/text.py
@@ -186,13 +186,20 @@ class InstallPathWindow:
if (todo.instClass.installType == "install"):
intf.steps = intf.commonSteps + intf.installSteps
todo.upgrade = 0
- return INSTALL_NOOP
+ showScreen = 0
elif (todo.instClass.installType == "upgrade"):
intf.steps = intf.commonSteps + intf.upgradeSteps
todo.upgrade = 1
- return INSTALL_NOOP
showScreen = 0
+ if not showScreen:
+ todo.fstab = NewtFstab(todo.setupFilesystems,
+ todo.serial, 0, 0,
+ todo.intf.waitWindow,
+ todo.intf.messageWindow)
+
+ return INSTALL_NOOP
+
if (todo.upgrade):
default = 4
orig = None
@@ -256,19 +263,12 @@ class InstallPathWindow:
class UpgradeExamineWindow:
def __call__ (self, dir, screen, todo):
- from fstab import NewtFstab
-
if dir == -1:
# Hack to let backing out of upgrades work properly
if todo.fstab:
todo.fstab.turnOffSwap()
return INSTALL_NOOP
- todo.fstab = NewtFstab(todo.setupFilesystems,
- todo.serial, 0, 0,
- todo.intf.waitWindow,
- todo.intf.messageWindow)
-
parts = todo.upgradeFindRoot ()
if not parts: