Changeset 1671 in ProjectBuilder
- Timestamp:
- Nov 10, 2012, 6:06:55 AM (12 years ago)
- Location:
- devel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf
r1653 r1671 630 630 ospathcmd-keymapre slack = s/\w\s([[:alpha:]]+.map)/$1/ 631 631 632 ospathcmd-termdir default = /usr/share/terminfo 633 632 634 # Some path for commands may defer from one system to another 633 635 ospathcmd-halt solaris = /usr/sbin/halt -
devel/pbmkbm/bin/pbmkbm
r1661 r1671 12 12 use strict 'vars'; 13 13 use Getopt::Long qw(:config auto_abbrev no_ignore_case); 14 use Carp qw/confess cluck/; 14 15 use Data::Dumper; 15 16 use English; … … 200 201 my $appname = "pbmkbm"; 201 202 $ENV{'PBPROJ'} = $appname; 203 204 $Global::pb_stop_on_error = 0; # False by default 202 205 203 206 # Initialize the syntax string … … 218 221 "boot|b=s" => \$opts{'b'}, 219 222 "version|V=s" => \$opts{'V'}, 223 "stop-on-error!" => \$Global::pb_stop_on_error, 220 224 ) || pb_syntax(-1,0); 221 225 … … 267 271 # Check for command requirements 268 272 # 269 my ($req,$opt) = pb_conf_get_if("oscmd","oscmdopt"); 270 pb_check_requirements($req,$opt,$appname); 273 my ($req,$opt,$pbstoponerr) = pb_conf_get_if("oscmd","oscmdopt","pbstoponerr"); 274 $Global::pb_stop_on_error = 1 if ((defined $pbstoponerr) && (defined $pbstoponerr->{$ENV{'PBPROJ'}}) && ($pbstoponerr->{$ENV{'PBPROJ'}} =~ /true/oi)); 275 #pb_check_requirements($req,$opt,$appname); 271 276 272 277 # After that we will need root access … … 419 424 foreach my $d (split(/,/,$bdirs)) { 420 425 if (-d $d) { 421 $targettree{$d} = " dir";426 $targettree{$d} = "recurdir"; 422 427 } elsif (-l $d) { 423 $targettree{$d} = "link ";428 $targettree{$d} = "link:$d"; 424 429 } else { 425 430 pb_log(1,"INFO: Directory $d doesn't exist\n"); … … 429 434 $targettree{$f} = "file"; 430 435 } 431 pb_log(2,"INFO: Target Tree is now: ".Dumper(%targettree)."\n");432 436 # Once the environment is made, add what is needed for this boot media to it. 433 437 # Keyboard 434 438 pb_mkbm_find_keyboard(\%targettree); 435 439 # Terminfo 440 pb_mkbm_find_terminfo(\%targettree); 436 441 # List of commands 437 442 # List of dependencies … … 444 449 # BootLoader and its configuration 445 450 # Additional data files coming from a potential caller (MondoRescue/Mindi e.g. with fstab, LVM, mountlist, ...) 451 pb_log(1,"INFO: Target Tree is now: ".Dumper(%targettree)."\n"); 446 452 pb_log(1,"End of boot media creation\n"); 447 453 } … … 500 506 die "Unable to read the keymapre $keymapre" if (not defined $keymapre); 501 507 502 # if a direct keymap file is given as keyfile, use only the first existing one itand return508 # if a direct keymap file is given as keyfile, use only the first existing one and return 503 509 my $foundkmap = 0; 504 510 foreach my $f (split(/,/,$keyfile)) { … … 530 536 531 537 pb_log(1,"End of keyboard analysis\n"); 538 } 539 540 sub pb_mkbm_find_terminfo { 541 542 my $tgtree = shift; 543 544 pb_log(1,"Analyzing your terminfo's configuration\n"); 545 my $termdir = pb_distro_get_param($pbos,pb_conf_get("ospathcmd-termdir")); 546 die "Unable to read the keymapdir $termdir" if ((not defined $termdir) || (! -d $termdir)); 547 $tgtree->{$termdir} = "recurdir"; 548 549 pb_log(1,"End of terminfo analysis\n"); 532 550 } 533 551
Note:
See TracChangeset
for help on using the changeset viewer.