134 |
+ drive)) |
+ drive)) |
135 |
f.close() |
f.close() |
136 |
|
|
137 |
if self.forceLBA32: |
args = "--stage2=/boot/grub/stage2 " |
138 |
@@ -841,14 +878,22 @@ |
@@ -840,14 +877,22 @@ |
139 |
f.write("forcelba=0\n") |
f.write("forcelba=0\n") |
140 |
f.close() |
f.close() |
141 |
|
|
142 |
- part = self.grubbyPartitionName(bootDev) |
- part = self.grubbyPartitionName(bootDev) |
143 |
- prefix = "%s/%s" % (self.grubbyPartitionName(bootDev), grubPath) |
- prefix = "%s/%s" % (self.grubbyPartitionName(bootDev), grubPath) |
144 |
- cmd = "root %s\ninstall %s%s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \ |
- cmd = "root %s\ninstall %s%s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \ |
145 |
- (part, forcelba, grubPath, self.grubbyPartitionName(grubTarget), |
- (part, args, grubPath, self.grubbyPartitionName(grubTarget), |
146 |
- grubPath, part, grubPath) |
- grubPath, part, grubPath) |
147 |
+ cmds = [] |
+ cmds = [] |
148 |
+ for bootDev in bootDevs: |
+ for bootDev in bootDevs: |
164 |
|
|
165 |
# copy the stage files over into /boot |
# copy the stage files over into /boot |
166 |
rhpl.executil.execWithRedirect( "/sbin/grub-install", |
rhpl.executil.execWithRedirect( "/sbin/grub-install", |
167 |
@@ -866,7 +911,8 @@ |
@@ -865,7 +910,8 @@ |
168 |
|
|
169 |
# really install the bootloader |
# really install the bootloader |
170 |
p = os.pipe() |
p = os.pipe() |
174 |
os.close(p[1]) |
os.close(p[1]) |
175 |
rhpl.executil.execWithRedirect('/sbin/grub' , |
rhpl.executil.execWithRedirect('/sbin/grub' , |
176 |
[ "grub", "--batch", "--no-floppy", |
[ "grub", "--batch", "--no-floppy", |
177 |
@@ -1045,40 +1091,64 @@ |
@@ -1044,41 +1090,64 @@ |
178 |
bootDev = fsset.getEntryByMountPoint("/") |
bootDev = fsset.getEntryByMountPoint("/") |
179 |
grubPath = "/boot/grub" |
grubPath = "/boot/grub" |
180 |
cfPath = "/boot/" |
cfPath = "/boot/" |
182 |
|
|
183 |
- part = self.grubbyPartitionName(bootDev) |
- part = self.grubbyPartitionName(bootDev) |
184 |
- prefix = "%s/%s" % (self.grubbyPartitionName(bootDev), grubPath) |
- prefix = "%s/%s" % (self.grubbyPartitionName(bootDev), grubPath) |
185 |
- cmd = "root %s\ninstall %s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \ |
- args = "--stage2=/boot/grub/stage2 " |
186 |
- (part, grubPath, self.grubbyPartitionName(theDev[5:]), |
- cmd = "root %s\ninstall %s%s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \ |
187 |
|
- (part, args, grubPath, self.grubbyPartitionName(theDev[5:]), |
188 |
- grubPath, part, grubPath) |
- grubPath, part, grubPath) |
189 |
- |
- |
190 |
- if not justConfigFile: |
- if not justConfigFile: |