1 |
diff -up booty-0.80.6/bootloaderInfo.py.smepatches booty-0.80.6/bootloaderInfo.py |
diff -up booty-0.80.6/bootloaderInfo.py.smepatches booty-0.80.6/bootloaderInfo.py |
2 |
--- booty-0.80.6/bootloaderInfo.py.smepatches 2009-04-14 09:07:28.000000000 -0600 |
--- booty-0.80.6/bootloaderInfo.py.smepatches 2009-05-30 12:13:40.000000000 -0600 |
3 |
+++ booty-0.80.6/bootloaderInfo.py 2009-04-14 09:12:44.000000000 -0600 |
+++ booty-0.80.6/bootloaderInfo.py 2009-05-30 12:28:42.000000000 -0600 |
4 |
@@ -1133,9 +1133,7 @@ class x86BootloaderInfo(bootloaderInfo): |
@@ -934,17 +934,14 @@ |
5 |
|
|
6 |
|
cmds = [] |
7 |
|
for bootDev in bootDevs: |
8 |
|
- gtPart = self.getMatchingPart(bootDev, grubTarget) |
9 |
|
- gtDisk = self.grubbyPartitionName(getDiskPart(gtPart)[0]) |
10 |
|
+ gtDisk = self.grubbyPartitionName(getDiskPart(bootDev)[0]) |
11 |
|
bPart = self.grubbyPartitionName(bootDev) |
12 |
|
- cmd = "root %s\n" % (bPart,) |
13 |
|
|
14 |
|
stage1Target = gtDisk |
15 |
|
if target == "partition": |
16 |
|
- stage1Target = self.grubbyPartitionName(gtPart) |
17 |
|
+ stage1Target = self.grubbyPartitionName(bootDev) |
18 |
|
|
19 |
|
- cmd += "install %s%s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \ |
20 |
|
- (forcelba, grubPath, stage1Target, grubPath, bPart, grubPath) |
21 |
|
+ cmd = "root %s\nsetup %s" % (bPart, stage1Target) |
22 |
|
cmds.append(cmd) |
23 |
|
|
24 |
|
if not justConfigFile: |
25 |
|
@@ -1133,9 +1130,7 @@ |
26 |
grubbyRootPart = self.grubbyPartitionName(rootDev) |
grubbyRootPart = self.grubbyPartitionName(rootDev) |
27 |
break |
break |
28 |
|
|
33 |
|
|
34 |
if not justConfigFile: |
if not justConfigFile: |
35 |
#log("GRUB command %s", cmd) |
#log("GRUB command %s", cmd) |
36 |
@@ -2084,9 +2082,9 @@ def getRootDevName(initrd, fsset, rootDe |
@@ -2084,9 +2079,9 @@ |
37 |
# returns a product name to use for the boot loader string |
# returns a product name to use for the boot loader string |
38 |
# FIXME: this is based on the stuff from anaconda, but kind of crappy :-/ |
# FIXME: this is based on the stuff from anaconda, but kind of crappy :-/ |
39 |
def getProductName(): |
def getProductName(): |