aboutsummaryrefslogtreecommitdiffstats
path: root/share
Commit message (Expand)AuthorAgeFilesLines
...
* implement no password in level 0Frederic Lepied2002-02-201-1/+6
* added enable_passwordFrederic Lepied2002-02-201-0/+13
* documented changes in versions 0.18 and 0.19Frederic Lepied2002-02-201-0/+22
* added insert_before.Frederic Lepied2002-02-201-0/+21
* /etc/security/msec/security.conf => /var/lib/msec/security.confFrederic Lepied2002-02-191-5/+48
* use perm file from /usr/share/msec/Frederic Lepied2002-02-191-1/+1
* added generated filesFrederic Lepied2002-02-151-0/+2
* use the right string for the prog nameFrederic Lepied2002-02-151-3/+3
* allow an extra arg to specify the log to do in enable_console_logFrederic Lepied2002-02-151-4/+5
* only reports an error for an empty wheel group when run interactively.Frederic Lepied2002-02-141-1/+1
* corrected warnings reported by pycheckerFrederic Lepied2002-02-143-36/+31
* add a delay in passowrd change before desactiving.Frederic Lepied2002-02-051-2/+2
* handle allowed delay in password changing.Frederic Lepied2002-02-051-6/+9
* use true/false for Browser value in gdm.confFrederic Lepied2002-02-051-2/+2
* (exists): add an extra arg to really test if the file exists (without testingFrederic Lepied2002-02-051-2/+2
* handle the extra arg for allow_x_connections.Frederic Lepied2002-02-051-5/+4
* corrected issue moving (only when really present).Frederic Lepied2002-02-051-12/+66
* removed debugging trace.Frederic Lepied2002-02-051-1/+0
* pass the same options used for msec.py to Perms.pyFrederic Lepied2002-02-051-6/+17
* process the options like msec to be able to log the same way.Frederic Lepied2002-02-051-2/+36
* create the man page for mseclibFrederic Lepied2002-02-021-1/+7
* first versionFrederic Lepied2002-02-021-0/+66
* password aging for root too.Frederic Lepied2002-01-291-2/+2
* new option: server_level to set a different server_level from theFrederic Lepied2002-01-291-0/+7
* handle /etc/security/msec/server symlink through create_server_link().Frederic Lepied2002-01-291-3/+32
* report msec instead of msec.py in the error messages.Frederic Lepied2002-01-281-4/+4
* use mseclib to have a way to process a config file before really doing theFrederic Lepied2002-01-271-43/+65
* regroup the on/off funtions in uniq ones with an arg to decide on/off.Frederic Lepied2002-01-271-233/+246
* first versionFrederic Lepied2002-01-272-0/+102
* more docFrederic Lepied2002-01-221-1/+5
* experimental chkrootkit check.Frederic Lepied2002-01-221-0/+1
* document 0.17-13mdk changesFrederic Lepied2002-01-211-1/+2
* log the start of the program in interactive mode.Frederic Lepied2002-01-211-0/+2
* allow current to be specified for permissions too.Frederic Lepied2002-01-211-10/+30
* log errors.Frederic Lepied2002-01-211-0/+1
* protect and log errors on os calls.Frederic Lepied2002-01-211-7/+25
* corrected password_length mismatch.Frederic Lepied2002-01-171-3/+3
* 0.17Frederic Lepied2002-01-1711-0/+1504
350'>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 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719

package install2; # $Id$

use diagnostics;
use strict;
use Data::Dumper;

use vars qw($o $version);

#-######################################################################################
#- misc imports
#-######################################################################################
use common qw(:common :file :system :functional);
use install_any qw(:all);
use install_steps;
use commands;
use lang;
use keyboard;
use mouse;
use fsedit;
use devices;
use partition_table qw(:types);
use modules;
use detect_devices;
use run_program;
use log;
use fs;

$::VERSION = "7.1";
#-$::corporate=1;

#-######################################################################################
#- Steps table
#-######################################################################################
my (%installSteps, @orderedInstallSteps);
{    
    my @installStepsFields = qw(text redoable onError hidden needs); 
    #entered reachable toBeDone next done;
    my @installSteps = (
  selectLanguage     => [ __("Choose your language"), 1, 1, '' ],
  selectInstallClass => [ __("Select installation class"), 1, 1, '' ],
  setupSCSI          => [ __("Hard drive detection"), 1, 0, '' ],
  selectMouse        => [ __("Configure mouse"), 1, 1, '', "selectInstallClass" ],
  selectKeyboard     => [ __("Choose your keyboard"), 1, 1, '', "selectInstallClass" ],
  miscellaneous      => [ __("Miscellaneous"), 1, 1, '$::beginner' ],
  doPartitionDisks   => [ __("Setup filesystems"), 1, 0, '', "selectInstallClass" ],
  formatPartitions   => [ __("Format partitions"), 1, -1, '', "doPartitionDisks" ],
  choosePackages     => [ __("Choose packages to install"), 1, -2, '$::beginner', "formatPartitions" ],
  installPackages    => [ __("Install system"), 1, -1, '', ["formatPartitions", "selectInstallClass"] ],
  configureNetwork   => [ __("Configure networking"), 1, 1, '', "formatPartitions" ],
#-  installCrypto      => [ __("Cryptographic"), 1, 1, '!$::expert', "configureNetwork" ],
  configureTimezone  => [ __("Configure timezone"), 1, 1, '', "installPackages" ],
  configureServices  => [ __("Configure services"), 1, 1, '!$::expert', "installPackages" ],
  configurePrinter   => [ __("Configure printer"), 1, 0, '', "installPackages" ],
  setRootPassword    => [ __("Set root password"), 1, 1, '', "installPackages" ],
  addUser            => [ __("Add a user"), 1, 1, '', "installPackages" ],
arch() !~ /alpha/ ? (
  createBootdisk     => [ __("Create a bootdisk"), 1, 0, '', "installPackages" ],
) : (),
  setupBootloader    => [ __("Install bootloader"), 1, 1, '', "installPackages" ],
  configureX         => [ __("Configure X"), 1, 1, '', ["formatPartitions", "setupBootloader"] ],
arch() !~ /alpha/ ? (
  generateAutoInstFloppy => [ __("Auto install floppy"), 1, 1, '!$::expert || $o->{lnx4win}', "installPackages" ],
) : (),
  exitInstall        => [ __("Exit install"), 0, 0, '$::beginner && !$::live' ],
);
    for (my $i = 0; $i < @installSteps; $i += 2) {
	my %h; @h{@installStepsFields} = @{ $installSteps[$i + 1] };
	$h{next}    = $installSteps[$i + 2];
	$h{entered} = 0;
	$h{onError} = $installSteps[$i + 2 * $h{onError}];
	$h{reachable} = !$h{needs};
	$installSteps{ $installSteps[$i] } = \%h;
	push @orderedInstallSteps, $installSteps[$i];
    }
    $installSteps{first} = $installSteps[0];
}
#-#####################################################################################
#-INTERNAL CONSTANT
#-#####################################################################################

my @install_classes = qw(normal developer server);

#-#####################################################################################
#-Default value
#-#####################################################################################
#- partition layout
my %suggestedPartitions = (
arch() =~ /^sparc/ ? (
  normal => [
    { mntpoint => "/",     size => 150 << 11, type => 0x83, ratio => 1, maxsize =>1000 << 11 },
    { mntpoint => "swap",  size =>  64 << 11, type => 0x82, ratio => 1, maxsize => 250 << 11 },
    { mntpoint => "/usr",  size => 300 << 11, type => 0x83, ratio => 4, maxsize =>3000 << 11 },
    { mntpoint => "/home", size => 300 << 11, type => 0x83, ratio => 3 },
  ],
) : (
  normal => [