diff options
author | Chris Lumens <clumens@redhat.com> | 2009-04-02 17:31:03 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-04-03 09:49:35 -0400 |
commit | 87d70083493c4652e0e3f8555458523d3d954883 (patch) | |
tree | 8552f2aca3d6d3c8c5d2eb43744eb903e9da298c | |
parent | ddf2f94fc3fbe646e30f1b5f03ab422bfee661de (diff) | |
download | anaconda-87d70083493c4652e0e3f8555458523d3d954883.tar.gz anaconda-87d70083493c4652e0e3f8555458523d3d954883.tar.xz anaconda-87d70083493c4652e0e3f8555458523d3d954883.zip |
Fix writing out the partition= line on PPC (#492732).
-rw-r--r-- | booty/ppc.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/booty/ppc.py b/booty/ppc.py index c187149c1..e1a948907 100644 --- a/booty/ppc.py +++ b/booty/ppc.py @@ -53,7 +53,7 @@ class ppcBootloaderInfo(bootloaderInfo): if not os.path.isdir(instRoot + "/boot/etc"): os.mkdir(instRoot + "/boot/etc") except KeyError: - bootDevice = self.storage.fsset.rootDevice + bootDev = self.storage.fsset.rootDevice cfPath = "/boot" cf = "/etc/yaboot.conf" @@ -65,11 +65,7 @@ class ppcBootloaderInfo(bootloaderInfo): f.write("init-message=\"Welcome to %s!\\nHit <TAB> for boot options\"\n\n" % productName) - (name, partNum) = getDiskPart(bootDev, self.storage) - partno = partNum + 1 # 1 based - - f.write("partition=%s\n" %(partno,)) - + f.write("partition=%s\n" % bootDev.partedPartition.number) f.write("timeout=%s\n" % (self.timeout or 80)) f.write("install=/usr/lib/yaboot/yaboot\n") f.write("delay=5\n") |