Changeset 1032


Ignore:
Timestamp:
May 22, 2010, 8:41:27 PM (10 years ago)
Author:
bruno
Message:
  • Pass more precisely the level of verbosity to rpmbootstrap
  • Fix bug in sudoers creation: now using the real account name, and also forcing to NOT requiretty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1030 r1032  
    18131813                    } elsif ($verpmstyle eq "rpmbootstrap") {
    18141814                        my $rbsverb = "";
    1815                         $rbsverb = "--verbose" if ($pbdebug gt 0);
     1815                        foreach my $i (1..$pbdebug) {
     1816                            $rbsverb .= " -v";
     1817                        }
    18161818                        my $addpkgs = "";
    18171819                        my $postparam = "";
     
    24352437EOF
    24362438    print SCRIPT << "EOF";
     2439# Some distro force requiretty at compile time, so disable here
     2440print PBOUT "Defaults:$pbac->{$ENV{'PBPROJ'}} !requiretty\n";
    24372441# This is needed in order to be able to halt the machine from the $pbac->{$ENV{'PBPROJ'}} account at least
    2438 print PBOUT "Defaults:pb env_keep += \\\"http_proxy ftp_proxy\\\"\n";
     2442print PBOUT "Defaults:$pbac->{$ENV{'PBPROJ'}} env_keep += \\\"http_proxy ftp_proxy\\\"\n";
    24392443print PBOUT "$pbac->{$ENV{'PBPROJ'}}   ALL=(ALL) NOPASSWD:ALL\n";
    24402444EOF
Note: See TracChangeset for help on using the changeset viewer.