[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Fix writing out the partition= line on PPC (#492732).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Fix writing out the partition= line on PPC (#492732).
- Date: Thu, 2 Apr 2009 17:31:40 -0400
---
booty/ppc.py | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/booty/ppc.py b/booty/ppc.py
index c187149..e1a9489 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")
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]