- Timestamp:
- May 21, 2010, 9:59:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified devel/pb/bin/pb ¶
r1027 r1029 1748 1748 my ($rbsb4pi,$rbspi,$vesnap,$oscodename,$osmindep,$verebuild) = pb_conf_get_if("rbsb4pi","rbspi","vesnap","oscodename","osmindep","verebuild"); 1749 1749 1750 # We need to avoid umask propagation to the VE 1751 umask 0022; 1752 1750 1753 if (($vetype eq "chroot") || ($vetype eq "schroot")) { 1751 1754 # Architecture consistency … … 2249 2252 # once this is done, we can do what we want on the VM remotely 2250 2253 } 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"; 2267 2255 # For VE we need a good null dev 2268 2256 pb_system("rm -f /dev/null; mknod /dev/null c 1 3; chmod 777 /dev/null"); 2269 2257 EOF 2270 if ($postparam ne "") { 2271 print SCRIPT << "EOF"; 2258 print SCRIPT << "EOF"; 2272 2259 # For VE we first need to mount some FS 2273 2260 pb_system("mount -t proc /proc /proc"); 2274 2261 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") { 2262 EOF 2263 } 2264 2265 if ($vtype eq "vm") { 2282 2266 print SCRIPT << 'EOF'; 2283 2267 # Removes duplicate in .ssh/authorized_keys of our key if needed
Note:
See TracChangeset
for help on using the changeset viewer.