summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-28 17:14:09 +0000
committerMatt Wilson <msw@redhat.com>2000-01-28 17:14:09 +0000
commitff5cf9b11961385cd1ffe45504e63976a52b74dd (patch)
tree1edaeaeb69b03fc7344daa1b613105d60116c6cc /todo.py
parente7bb99c192e824bb7ad7800760cfaebae21432af (diff)
downloadanaconda-ff5cf9b11961385cd1ffe45504e63976a52b74dd.tar.gz
anaconda-ff5cf9b11961385cd1ffe45504e63976a52b74dd.tar.xz
anaconda-ff5cf9b11961385cd1ffe45504e63976a52b74dd.zip
basic changes to get new lilo code working
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py34
1 files changed, 11 insertions, 23 deletions
diff --git a/todo.py b/todo.py
index c4c8a393c..fcb1c96be 100644
--- a/todo.py
+++ b/todo.py
@@ -295,7 +295,6 @@ class ToDo:
self.timezone = None
self.upgrade = 0
self.ddruidAlreadySaved = 0
- self.initrdsMade = {}
self.initlevel = 3
self.expert = expert
self.progressWindow = None
@@ -398,19 +397,6 @@ class ToDo:
f.write(str (self.keyboard))
f.close()
- def makeInitrd (self, kernelTag):
- initrd = "/boot/initrd%s.img" % (kernelTag, )
- if not self.initrdsMade.has_key(initrd):
- iutil.execWithRedirect("/sbin/mkinitrd",
- [ "/sbin/mkinitrd",
- "--ifneeded",
- initrd,
- kernelTag[1:] ],
- stdout = None, stderr = None, searchPath = 1,
- root = self.instPath)
- self.initrdsMade[kernelTag] = 1
- return initrd
-
def needBootdisk (self):
if self.bootdisk or self.fstab.rootOnLoop(): return 1
@@ -428,7 +414,6 @@ class ToDo:
kernel = self.hdList['kernel']
kernelTag = "-%s-%s" % (kernel['version'], kernel['release'])
- self.makeInitrd (kernelTag)
w = self.intf.waitWindow (_("Creating"), _("Creating boot disk..."))
self.setFdDevice ()
rc = iutil.execWithRedirect("/sbin/mkbootdisk",
@@ -1231,14 +1216,17 @@ class ToDo:
iutil.execWithRedirect(argv[0], argv, root = self.instPath,
stdout = devnull)
- if arch == "sparc":
- self.silo.installSilo ()
- elif arch == "i386":
- self.lilo.install (self.fstab)
- elif arch == "alpha":
- self.milo.write ()
- else:
- raise RuntimeError, "What kind of machine is this, anyway?!"
+ # XXX make me "not test mode"
+ if self.setupFilesystems:
+ if arch == "sparc":
+ self.silo.installSilo ()
+ elif arch == "i386":
+ self.lilo.install (self.fstab, self.instPath, self.hdList,
+ self.upgrade)
+ elif arch == "alpha":
+ self.milo.write ()
+ else:
+ raise RuntimeError, "What kind of machine is this, anyway?!"
if self.instClass.postScript:
scriptRoot = "/"