summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-30 22:30:39 +0000
committerMatt Wilson <msw@redhat.com>1999-09-30 22:30:39 +0000
commitf73d7e645336343d1c103ee270181282220d6830 (patch)
tree7303f6430dc0644d29bfa2aabfc05fe57d0d8f44 /todo.py
parentc1c96e1b2743767593c3519a7f6d8ddba44e7317 (diff)
downloadanaconda-f73d7e645336343d1c103ee270181282220d6830.tar.gz
anaconda-f73d7e645336343d1c103ee270181282220d6830.tar.xz
anaconda-f73d7e645336343d1c103ee270181282220d6830.zip
catch the right exception for sparc?
more arch changes for alpha
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/todo.py b/todo.py
index e05f7cd5d..5e3756e19 100644
--- a/todo.py
+++ b/todo.py
@@ -303,7 +303,7 @@ class ToDo:
if iutil.getArch() == "sparc":
try:
f = open(self.fdDevice, "r")
- except Exception, (errnum, msg):
+ except IOError, (errnum, msg):
if errno.errorcode[errnum] == 'ENXIO':
self.fdDevice = "/dev/fd1"
else:
@@ -1261,6 +1261,8 @@ class ToDo:
self.getHeaderList()
self.getCompsList()
+ arch = iutil.getArch ()
+
# this is NICE and LATE. It lets kickstart/server/workstation
# installs detect this properly
if (self.hdList.has_key('kernel-smp') and isys.smpAvailable()):
@@ -1426,7 +1428,6 @@ class ToDo:
if (self.instClass.defaultRunlevel):
self.initlevel = self.instClass.defaultRunlevel
self.setDefaultRunlevel ()
- arch = iutil.getArch ()
# pcmcia is supported only on i386 at the moment
if arch == "i386":
@@ -1452,10 +1453,11 @@ class ToDo:
devnull = os.open("/dev/null", os.O_RDWR)
iutil.execWithRedirect(argv[0], argv, root = self.instPath,
stdout = devnull)
- if self.silo:
- self.silo.installSilo ()
- else:
- self.installLilo ()
+ if arch != "alpha":
+ if self.silo:
+ self.silo.installSilo ()
+ else:
+ self.installLilo ()
if self.instClass.postScript:
scriptRoot = "/"