Changeset 1402 in ProjectBuilder for devel/pb-modules


Ignore:
Timestamp:
Feb 3, 2012, 12:17:04 AM (12 years ago)
Author:
Bruno Cornec
Message:

r4487@cabanilles: bruno | 2012-02-01 16:21:48 +0100

  • Fix the -t option without param for pb
  • add a function to analyze busybox countent and create appropriate structure for pbmkbm
Location:
devel/pb-modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf

    r1374 r1402  
    343343
    344344# Where to store packages downloaded temporarily by rpmbootstrap
    345 rbscachedir default = /var/cache/rpmbootstrap
     345cachedir rpmbootstrap = /var/cache/rpmbootstrap
     346cachedir pbmkbm = /var/cache/rpmbootstrap
    346347
    347348# Options to pass to rpmbootstrap command. By default keep downloaded packages
     
    377378verpmtype pbmkbm = rpmbootstrap
    378379vedebtype pbmkbm = debbootstrap
     380
     381# Log command to use to have a sufficient understanding of the environment in which we oprate
     382logcmd pbmkbm = internal
     383# internal or sos, or cfg2html, or ...
     384logopt pbmkbm = --options
     385logfiles pbmkbm = /etc/raidtab,/proc/cmdline,/proc/swaps,/proc/partitions,/proc/filesystems,/proc/lvm,/dev/mapper
     386logcommands pbmkbm = mount,lsmod,esxcfg-module -l,df -T
     387
     388# Directories to create on the target media
     389targetdir pbmkbm = /bin,/usr/bin,/tmp
     390# Files to embed on the target media
     391mandatoryfiles pbmkbm =
     392optionalfiles pbmkbm =
     393
     394# Where are the ISO bootloader for this OS
     395mkbmisobl linux = /usr/lib/syslinux/isolinux.bin,/usr/lib64/syslinux/isolinux.bin
     396mkbmkbd mageia = /usr/lib/kbd
    379397
    380398# pb install dependencies per distro
     
    502520oscmd rpmbootstrap = rpm,rpm2cpio,wget
    503521#oscmdopt rpmbootstrap =
    504 #
     522oscmd pbmkbm =
     523oscmdopt pbmkbm =
     524#
     525# If busybox, which one is used (from mindi, or native, ...)
     526ospathcmd-busybox default = /usr/lib/mindi/rootfs/bin/busybox
    505527
    506528# Some path for commands may defer from one system to another
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r1400 r1402  
    393393
    394394# On linux can also use /proc/sys/kernel/osrelease
    395 return(chomp(`uname -r`));
     395my $rel = `uname -m`;
     396chomp($rel);
     397return($rel);
    396398}
    397399
     
    480482} else {
    481483    pb_log(2,"OK\n");
    482     return($found);
    483 }
     484}
     485return($found);
    484486}
    485487
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r1212 r1402  
    560560
    561561This function gets the OS context passed as parameter and return the corresponding distribution hash
     562If passed undef or "" then auto-detects
    562563
    563564=cut
     
    569570my $pbos;
    570571
    571 if (defined $os) {
     572if ((defined $os) && ($os ne "")) {
    572573    my ($name,$ver,$darch) = split(/-/,$os);
    573574    pb_log(0,"Bad format for $os") if ((not defined $name) || (not defined $ver) || (not defined $darch)) ;
Note: See TracChangeset for help on using the changeset viewer.