diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-30 22:30:39 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-30 22:30:39 +0000 |
commit | f73d7e645336343d1c103ee270181282220d6830 (patch) | |
tree | 7303f6430dc0644d29bfa2aabfc05fe57d0d8f44 /todo.py | |
parent | c1c96e1b2743767593c3519a7f6d8ddba44e7317 (diff) | |
download | anaconda-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.py | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 = "/" |