889 |
|
|
890 |
cmds = [] |
cmds = [] |
891 |
for bootDev in bootDevs: |
for bootDev in bootDevs: |
892 |
gtDisk = self.grubbyPartitionName(getDiskPart(bootDev)[0]) |
gtPart = self.getMatchingPart(bootDev, grubTarget) |
893 |
bPart = self.grubbyPartitionName(bootDev) |
gtDisk = self.grubbyPartitionName(getDiskPart(gtPart)[0]) |
894 |
|
bPart = self.grubbyPartitionName(bootDev) |
895 |
|
cmd = "root %s" % (bPart,) |
896 |
|
cmds.append(cmd) |
897 |
|
|
898 |
stage1Target = gtDisk |
stage1Target = gtDisk |
899 |
if target == "partition": |
if target == "partition": |
900 |
stage1Target = self.grubbyPartitionName(bootDev) |
stage1Target = self.grubbyPartitionName(gtPart) |
901 |
|
|
902 |
cmd = "root %s\nsetup %s" % (bPart, stage1Target) |
cmd = "install %s%s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \ |
903 |
|
(forcelba, grubPath, stage1Target, grubPath, bPart, grubPath) |
904 |
cmds.append(cmd) |
cmds.append(cmd) |
905 |
|
|
906 |
if not justConfigFile: |
if not justConfigFile: |
1085 |
grubbyRootPart = self.grubbyPartitionName(rootDev) |
grubbyRootPart = self.grubbyPartitionName(rootDev) |
1086 |
break |
break |
1087 |
|
|
1088 |
cmd = "root %s\nsetup %s" % (grubbyRootPart, grubbyStage1Dev) |
cmd = "root %s\ninstall %s/stage1 d %s %s/stage2 p %s%s/grub.conf" \ |
1089 |
|
% (grubbyRootPart, grubPath, grubbyStage1Dev, |
1090 |
|
grubPath, grubbyRootPart, grubPath) |
1091 |
|
|
1092 |
if not justConfigFile: |
if not justConfigFile: |
1093 |
log("GRUB command %s", cmd) |
log("GRUB command %s", cmd) |