Changeset 1029 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
May 21, 2010, 9:59:59 PM (14 years ago)
Author:
Bruno Cornec
Message:
  • Fix umask propagation in VE, fixing issues in directory creation with wrong rights
  • Remove the useless vemindep option and fix ospkgdep accordingly
  • Fix the rights for the dev dir in rpmbootstrap
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1027 r1029  
    17481748        my ($rbsb4pi,$rbspi,$vesnap,$oscodename,$osmindep,$verebuild) = pb_conf_get_if("rbsb4pi","rbspi","vesnap","oscodename","osmindep","verebuild");
    17491749
     1750        # We need to avoid umask propagation to the VE
     1751        umask 0022;
     1752
    17501753        if (($vetype eq "chroot") || ($vetype eq "schroot")) {
    17511754            # Architecture consistency
     
    22492252        # once this is done, we can do what we want on the VM remotely
    22502253    } elsif ($vtype eq "ve") {
    2251         # We need to finish the setup of packages needed in the VE
    2252         # rinse/debootstrap at least needs it
    2253         my ($vemindep) = pb_conf_get_if("vemindep");
    2254 
    2255         my $postparam = "";
    2256         if (defined $vemindep) {
    2257             $postparam .= " ".pb_distro_get_param($ddir,$dver,$darch,$vemindep);
    2258         }
    2259         # Change the list of pkg in to a space separated list
    2260         $postparam =~ s/,/ /g;
    2261         # remove potential sudo from the update command for this time,
    2262         # as this will be run as root anyway, and if not we will have
    2263         # a problem with tty
    2264         $pbupd =~ s/sudo //g;
    2265 
    2266             print SCRIPT << "EOF";
     2254        print SCRIPT << "EOF";
    22672255# For VE we need a good null dev
    22682256pb_system("rm -f /dev/null; mknod /dev/null c 1 3; chmod 777 /dev/null");
    22692257EOF
    2270         if ($postparam ne "") {
    2271             print SCRIPT << "EOF";
     2258        print SCRIPT << "EOF";
    22722259# For VE we first need to mount some FS
    22732260pb_system("mount -t proc /proc /proc");
    22742261
    2275 # For VE we need some additional packages that are not there yet
    2276 pb_system("$pbupd $postparam");
    2277 
    2278 EOF
    2279         }
    2280     }
    2281     if ($vtype eq "vm") {
     2262EOF
     2263    }
     2264
     2265if ($vtype eq "vm") {
    22822266        print SCRIPT << 'EOF';
    22832267# Removes duplicate in .ssh/authorized_keys of our key if needed
Note: See TracChangeset for help on using the changeset viewer.