13 |
|
|
14 |
class Script: |
class Script: |
15 |
def __repr__(self): |
def __repr__(self): |
16 |
str = ("(s: '%s' i: %s c: %d)") % \ |
str = ("(s: '%s' i: %s c: %d)") % \ |
17 |
(self.script, self.interp, self.inChroot) |
(self.script, self.interp, self.inChroot) |
18 |
return string.replace(str, "\n", "|") |
return string.replace(str, "\n", "|") |
19 |
|
|
61 |
"will be repartitioned and formated.") |
"will be repartitioned and formated.") |
62 |
|
|
63 |
sortPriority = 1 |
sortPriority = 1 |
|
|
|
|
cmdline = {} |
|
64 |
doPartition = False |
doPartition = False |
65 |
|
cmdline = {} |
66 |
|
|
67 |
parentClass = ( _("Install SME Server"), "smeserver.png" ) |
parentClass = ( _("Install SME Server"), "smeserver.png" ) |
68 |
|
|
132 |
"complete" |
"complete" |
133 |
) |
) |
134 |
|
|
|
|
|
135 |
# 'partition' can be used on the command line to force |
# 'partition' can be used on the command line to force |
136 |
# verification of partitions. useful in some cases... |
# verification of partitions. useful in some cases... |
137 |
if self.doPartition or self.cmdline.has_key("partition"): |
if self.doPartition or self.cmdline.has_key("partition"): |
242 |
raidmembers=raid2, raidlevel="RAID"+str(level), raidminor=2, format=1, raidspares=spares)) |
raidmembers=raid2, raidlevel="RAID"+str(level), raidminor=2, format=1, raidspares=spares)) |
243 |
|
|
244 |
partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet("ext3"), |
partitions.autoPartitionRequests.append(partRequests.RaidRequestSpec(fileSystemTypeGet("ext3"), |
245 |
mountpoint="/", raidmembers=raid3, raidlevel="RAID"+str(level), raidminor=3, format=1, |
mountpoint="/", raidmembers=raid3, raidlevel="RAID"+str(level), raidminor=3, format=1, |
246 |
raidspares=spares)) |
raidspares=spares)) |
247 |
|
|
248 |
else: |
else: |
249 |
for drive in drives: |
for drive in drives: |
250 |
partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("ext3"), |
partitions.autoPartitionRequests.append(partRequests.PartitionSpec(fileSystemTypeGet("ext3"), |
251 |
mountpoint="/boot", drive=[drive], size=100, primary=1, format=1)) |
mountpoint="/boot", drive=[drive], size=100, primary=1, format=1)) |
252 |
|
|
253 |
if not self.cmdline.has_key("nolvm"): |
if not self.cmdline.has_key("nolvm"): |
254 |
request = partRequests.PartitionSpec(fileSystemTypeGet("physical volume (LVM)"), |
request = partRequests.PartitionSpec(fileSystemTypeGet("physical volume (LVM)"), |