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