diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-06-23 19:02:38 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-06-23 19:02:38 +0000 |
commit | c8c0190205336f69c1a94f890a28a3e040565a97 (patch) | |
tree | e14cbf45307c02955d4e358dfb7e584026346953 /fsset.py | |
parent | d1636e475e29facfa7c08db38d4845a9bfe682e7 (diff) | |
download | anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.gz anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.xz anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.zip |
merge from taroon. highlights of this time around
* ppc boot constraints
* md5 endianness
* don't prompt to save tracebacks to a floppy without a floppy
* autopart for kickstart
* network configuration in the loader if vnc/display case
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -755,6 +755,7 @@ class prepbootFileSystem(FileSystemType): self.partedFileSystemType = None self.checked = 0 self.name = "PPC PReP Boot" + self.maxSizeMB = 10 # supported for use on the pseries if (iutil.getPPCMachine() == "pSeries" or @@ -1078,9 +1079,15 @@ class FileSystemSet: bootDev = entry.device elif (iutil.getPPCMachine() == "pSeries" or iutil.getPPCMachine() == "iSeries"): + # we want the first prep partition or the first newly formatted one + bestprep = None for entry in self.entries: - if entry.fsystem.getName() == "PPC PReP Boot": - bootDev = entry.device + if ((entry.fsystem.getName() == "PPC PReP Boot") + and ((bestprep is None) or + ((bestprep.format == 0) and (entry.format == 1)))): + bestprep = entry + if bestprep: + bootDev = bestprep.device elif iutil.getArch() == "ia64": if mntDict.has_key("/boot/efi"): bootDev = mntDict['/boot/efi'] @@ -1113,7 +1120,6 @@ class FileSystemSet: N_("Apple Bootstrap")) n = n + 1 return ret - # FIXME: is this right? elif (iutil.getPPCMachine() == "pSeries" or iutil.getPPCMachine() == "iSeries"): ret['boot'] = (bootDev.device, N_("PPC PReP Boot")) |