1463 |
formatted = [] |
formatted = [] |
1464 |
notformatted = [] |
notformatted = [] |
1465 |
for entry in self.entries: |
for entry in self.entries: |
1466 |
|
if (entry.mountpoint != '/boot'): |
1467 |
|
continue |
1468 |
|
try: |
1469 |
|
self.formatEntry(entry, chroot) |
1470 |
|
formatted.append(entry) |
1471 |
|
except SystemError: |
1472 |
|
if self.messageWindow: |
1473 |
|
self.messageWindow(_("Error"), |
1474 |
|
_("An error occurred trying to " |
1475 |
|
"format %s. This problem is " |
1476 |
|
"serious, and the install cannot " |
1477 |
|
"continue.\n\n" |
1478 |
|
"Press <Enter> to reboot your system.") |
1479 |
|
% (entry.device.getDevice(),)) |
1480 |
|
sys.exit(0) |
1481 |
|
|
1482 |
|
for entry in self.entries: |
1483 |
|
if (entry.mountpoint == '/boot'): |
1484 |
|
continue |
1485 |
if (not entry.fsystem.isFormattable() or not entry.getFormat() |
if (not entry.fsystem.isFormattable() or not entry.getFormat() |
1486 |
or entry.isMounted()): |
or entry.isMounted()): |
1487 |
notformatted.append(entry) |
notformatted.append(entry) |
1977 |
if self.spares > 0: |
if self.spares > 0: |
1978 |
args.append("--spare-devices=%s" %(self.spares,),) |
args.append("--spare-devices=%s" %(self.spares,),) |
1979 |
|
|
1980 |
if self.numDisks == 1: |
if self.numDisks == 1 and self.level == 1: |
1981 |
args.append("--raid-devices=2") |
args.append("--raid-devices=2") |
1982 |
else: |
else: |
1983 |
args.append("--raid-devices=%s" %(self.numDisks,),) |
args.append("--raid-devices=%s" %(self.numDisks,),) |
1984 |
|
|
1985 |
args.extend(map(devify, self.members)) |
args.extend(map(devify, self.members)) |
1986 |
|
|
1987 |
if self.numDisks == 1: |
if self.numDisks == 1 and self.level == 1: |
1988 |
args.append("missing") |
args.append("missing") |
1989 |
|
|
1990 |
log("going to run: %s" %(args,)) |
log("going to run: %s" %(args,)) |