summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-01 12:51:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-01 12:51:58 +0000
commita65380d6226ab184a590a6630bd460e2e01217a4 (patch)
treeb061f39e85fce059e65315dcc908eea3cdc8771e /perl-install
parent5afb716b81f174980b45127ad48f30ebb17c209e (diff)
downloaddrakx-backup-do-not-use-a65380d6226ab184a590a6630bd460e2e01217a4.tar
drakx-backup-do-not-use-a65380d6226ab184a590a6630bd460e2e01217a4.tar.gz
drakx-backup-do-not-use-a65380d6226ab184a590a6630bd460e2e01217a4.tar.bz2
drakx-backup-do-not-use-a65380d6226ab184a590a6630bd460e2e01217a4.tar.xz
drakx-backup-do-not-use-a65380d6226ab184a590a6630bd460e2e01217a4.zip
handle auto_allocate_raids for auto_installs
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fsedit.pm25
-rw-r--r--perl-install/install_steps.pm2
2 files changed, 25 insertions, 2 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 504d643dd..ea6e6443b 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -387,11 +387,34 @@ sub allocatePartitions($$) {
}
sub auto_allocate {
- my ($hds, $suggestions) = @_;
+ my ($hds, $suggestions, $raid) = @_;
allocatePartitions($hds, $suggestions || $suggestions{simple});
+
+ auto_allocate_raids($hds, $suggestions, $raid) if $raid && $suggestions;
+
map { partition_table::assign_device_numbers($_) } @$hds;
}
+sub auto_allocate_raids {
+ my ($hds, $suggestions, $raid) = @_;
+
+ my @raids = grep { isRAID($_) } get_fstab(@$hds) or return;
+ if (@raids) {
+ require raid;
+ my @mds = grep { $_->{hd} =~ /md/ } @$suggestions;
+ foreach my $md (@mds) {
+ my @raids_ = grep { !$md->{parts} || $md->{parts} =~ /\Q$_->{mntpoint}/ } @raids;
+ @raids = difference2(\@raids, \@raids_);
+ my $nb = raid::new($raid, @raids_);
+ my $part = $raid->[$nb];
+
+ my %h = %$md;
+ delete @h{'hd', 'parts'};
+ put_in_hash($part, \%h); # mntpoint, level, chunk-size, type
+ }
+ }
+}
+
sub undo_prepare($) {
my ($hds) = @_;
require Data::Dumper;
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 47c008c8e..ab16217f8 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -192,7 +192,7 @@ sub doPartitionDisks {
install_any::use_root_part($o->{fstab}, $p, $o->{prefix});
}
if ($o->{partitioning}{auto_allocate}) {
- fsedit::auto_allocate($o->{hds}, $o->{partitions});
+ fsedit::auto_allocate($o->{hds}, $o->{partitions}, $o->{raid}{raid});
}
}
10 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
# translation of mdkonline-sc.po to Sardu
# translation of Mandriva Online to Sardu
# This file is distributed under the same license as the PACKAGE package.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
# Antonio Pistis <antonio.pistis@virgilio.it>, 2004.
# Antoni Pistis <antonio.pistis@virgilio.it>, 2004, 2005.
#
msgid ""
msgstr ""
"Project-Id-Version: mdkonline-sc\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-01-31 20:23+0100\n"
"PO-Revision-Date: 2005-01-30 16:08+0100\n"
"Last-Translator: Antoni Pistis <antonio.pistis@virgilio.it>\n"
"Language-Team: Sardu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.3\n"

#: ../mdkapplet:63
#, c-format
msgid "Your system is up-to-date"
msgstr "Su sistema est ajorronau"

#: ../mdkapplet:69
#, c-format
msgid ""
"Service configuration problem. Please check logs and send mail to "
"support@mandrivaonline.net"
msgstr ""
"Probrema de assètiu de serbìtziu. Controlla is log e manda una missada a "
"support@mandrivaonline.net"

#: ../mdkapplet:75
#, c-format
msgid "System is busy. Please wait ..."
msgstr "Su sistema est arrocau. Abeta ..."

#: ../mdkapplet:81
#, c-format
msgid "New updates are available for your system"
msgstr "Ajorronus a disposta po su sistema tuu"

#: ../mdkapplet:87
#, c-format
msgid "Service is not configured. Please click on \"Configure the service\""
msgstr "Serbìtziu no assetiau. Craca \"Assètia su Serbìtziu\""

#: ../mdkapplet:93
#, c-format
msgid "Network is down. Please configure your network"
msgstr "S'arretza no andat. Assètia s'arretza tua."

#: ../mdkapplet:99
#, c-format
msgid "Service is not activated. Please click on \"Online Website\""
msgstr "Serbìtziu no abivau. Craca \"Jassus Online\""

#: ../mdkapplet:105
#, c-format
msgid "Release not supported (too old release, or development release)"
msgstr "Release no suportada (tropu beça, o de adelantamentu)"

#: ../mdkapplet:110 ../mdkapplet:164
#, c-format
msgid "Install updates"
msgstr "Aposenta is ajorronus"

#: ../mdkapplet:111
#, c-format
msgid "Configure the service"
msgstr "Assètia su serbìtziu"

#: ../mdkapplet:112
#, c-format
msgid "Check Updates"
msgstr "Controlla is Ajorronus"

#: ../mdkapplet:113 ../mdkapplet:167 ../mdkapplet:228 ../mdkonline:89
#: ../mdkonline:93 ../mdkonline:131
#, c-format
msgid "Please wait"
msgstr "Abeta, po praxeri"

#: ../mdkapplet:113 ../mdkapplet:166 ../mdkapplet:167 ../mdkapplet:228
#, c-format
msgid "Check updates"
msgstr "Controlla is ajorronus"

#: ../mdkapplet:115
#, c-format
msgid "Online WebSite"
msgstr "Jassu online"

#: ../mdkapplet:116
#, c-format
msgid "Configure Network"
msgstr "Assètia Arretza"

#: ../mdkapplet:117
#, c-format
msgid "Configure Now!"
msgstr "Assètia Imoi!"

#: ../mdkapplet:152 ../mdkapplet:232
#, c-format
msgid "Mandriva Linux Updates Applet"
msgstr "Applet Mandriva Linux Updates"

#: ../mdkapplet:162
#, c-format
msgid "Actions"
msgstr "Fainas"

#: ../mdkapplet:165
#, c-format
msgid "Configure"
msgstr "Assètia"

#: ../mdkapplet:169
#, c-format
msgid "See logs"
msgstr "Càstia is logs"

#: ../mdkapplet:172
#, c-format
msgid "Status"
msgstr "Stadu"

#: ../mdkapplet:176 ../mdkapplet:370
#, c-format
msgid "Close"
msgstr "Serra"

#: ../mdkapplet:213
#, c-format
msgid "Network Connection: "
msgstr "Acàpiu a s'Arretza: "

#: ../mdkapplet:213
#, c-format
msgid "Up"
msgstr "Andat"

#: ../mdkapplet:213
#, c-format
msgid "Down"
msgstr "No andat"

#: ../mdkapplet:214
#, c-format
msgid "Last check: "
msgstr "Ùrtimu controllu: "

#: ../mdkapplet:215 ../mdkonline:127
#, c-format
msgid "Machine name:"
msgstr "Nòmini màkina:"

#: ../mdkapplet:216
#, c-format
msgid "Updates: "
msgstr "Ajorronus:"

#: ../mdkapplet:220
#, c-format
msgid "Launching drakconnect\n"
msgstr "Seu alluendi drakconnect\n"

#: ../mdkapplet:224
#, c-format
msgid "Launching mdkupdate --applet\n"
msgstr "Seu alluendi mdkupdate --applet\n"

#: ../mdkapplet:227
#, c-format
msgid "Mandriva Online seems to be reinstalled, reloading applet ...."
msgstr "Mandriva Online parit torrau a aposentai, càrrigu torra sa applet ...."

#: ../mdkapplet:238
#, c-format
msgid "Computing new updates...\n"
msgstr "Seu carculendi atrus ajorronus...\n"

#: ../mdkapplet:240
#, c-format
msgid "Connecting to"
msgstr "Seu acapiendi"

#: ../mdkapplet:247
#, c-format
msgid "Response from Mandriva Online server\n"
msgstr "Arrespusta de su server Mandriva Online\n"

#: ../mdkapplet:265
#, c-format
msgid "Checking... Updates are available\n"