16 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 |
# |
# |
18 |
|
|
|
import isys |
|
19 |
import os, sys |
import os, sys |
20 |
|
import isys |
21 |
import crypt |
import crypt |
22 |
import random |
import random |
23 |
import butil |
import butil |
839 |
for dev in self.getPhysicalDevices(rootDev): |
for dev in self.getPhysicalDevices(rootDev): |
840 |
usedDevs[dev] = 1 |
usedDevs[dev] = 1 |
841 |
|
|
842 |
|
for dev in bootDevs: |
843 |
|
usedDevs[dev] = 1 |
844 |
|
|
845 |
if not os.access(instRoot + "/boot/grub/device.map", os.R_OK): |
if not os.access(instRoot + "/boot/grub/device.map", os.R_OK): |
846 |
f = open(instRoot + "/boot/grub/device.map", "w+") |
f = open(instRoot + "/boot/grub/device.map", "w+") |
847 |
f.write("# this device map was generated by anaconda\n") |
f.write("# this device map was generated by anaconda\n") |
891 |
for bootDev in bootDevs: |
for bootDev in bootDevs: |
892 |
gtPart = self.getMatchingPart(bootDev, grubTarget) |
gtPart = self.getMatchingPart(bootDev, grubTarget) |
893 |
gtDisk = self.grubbyPartitionName(getDiskPart(gtPart)[0]) |
gtDisk = self.grubbyPartitionName(getDiskPart(gtPart)[0]) |
894 |
bPart = self.grubbyPartitionName(bootDev) |
bPart = self.grubbyPartitionName(bootDev) |
895 |
cmd = "root %s" % (bPart,) |
cmd = "root %s" % (bPart,) |
896 |
cmds.append(cmd) |
cmds.append(cmd) |
897 |
|
|
1085 |
grubbyRootPart = self.grubbyPartitionName(rootDev) |
grubbyRootPart = self.grubbyPartitionName(rootDev) |
1086 |
break |
break |
1087 |
|
|
1088 |
cmd = "root %s\ninstall %s/stage1 d %s %s/stage2 p %s%s/grub.conf" \ |
cmd = "root %s\ninstall %s/stage1 d %s %s/stage2 p %s%s/grub.conf" \ |
1089 |
% (grubbyRootPart, grubPath, grubbyStage1Dev, |
% (grubbyRootPart, grubPath, grubbyStage1Dev, |
1090 |
grubPath, grubbyRootPart, grubPath) |
grubPath, grubbyRootPart, grubPath) |
1091 |
|
|