Changeset 1403 in ProjectBuilder


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

r4490@cabanilles: bruno | 2012-02-03 00:10:53 +0100

  • Still further on pbmkbm (sync point)
Location:
devel
Files:
2 edited

Legend:

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

    r1402 r1403  
    386386logcommands pbmkbm = mount,lsmod,esxcfg-module -l,df -T
    387387
    388 # Directories to create on the target media
    389 targetdir pbmkbm = /bin,/usr/bin,/tmp
    390 # Files to embed on the target media
    391 mandatoryfiles pbmkbm =
    392 optionalfiles pbmkbm =
     388# What is needed at boot time to have a minimal working environment
     389# Directories to create on the target media, even if no file is in it (else it will be created automatically)
     390mkbmtargetdirs linux =  /tmp,/dev
     391# In term of dirs from the original to copy to the target
     392mkbmbootdirs linux =  /etc/modprobe.d/,/etc/ssh,/etc/udev,/etc/hotplug.d,/etc/mdadm,/var/lib/dhcp
     393# In term of files from the original to copy to the target
     394mkbmbootfiles linux = /etc/init.d/functions,/etc/rc.d/functions,/etc/rpc,/etc/netconf,/usr/lib/libnss_compat.so,/usr/lib64/libnss_compat.so,/usr/lib/libnss_files.so,/usr/lib64/libnss_files.so,/etc/modprobe.conf,/etc/conf.modules,/etc/modules.conf.local,/etc/mdadm.conf,/etc/raidtab
     395# In term of commands from the original to copy to the target
     396mkbmbootcmds linux = perl,mt,awk,gawk,dd,grep,uname,df,loadkeys,pidof,gzip,klogd,syslogd,rsyslogd,syslog-ng,mount,mount.nfs,mount.nfs4,sshfs,mount.fuse,fusermount,ssh,ulockmgr_server,mount.cifs,mount.cifs3,mount.smb,mount.smb3,mount.smbfs,mount.smbfs3,mount.ntfs,mount.ntfs-3g,MAKEDEV,udev.static,udevsend,udevd,hwup,path_id,scsi_tur,udeadm,udevstart.static,udev_volume_id,start_udev,udevstart,create_static_dev_nodes,scsi_id,insmod,lsmod,modprobe,mdadm,mdassemble,raidstart,multipath,dmsetup,kpartx,dmraid,mpath_prio_alua,mpath_wait,mpath_ctl,mpath_prio_emc,mpath_prio_hds_modular,mpath_prio_netapp,mpath_prio_ontap,mpath_prio_rdac,mpath_prio_tpc,ping,ifconfig,ip,route,dhclient,dhcpcd,
     397
     398# Files to add on the boot media to support a full working system
     399mkbmbasefiles linux = /etc/modules.conf,/etc/fstab,/etc/hosts,/etc/host.conf,/etc/resolv.conf,/etc/hosts.allow,/etc/hosts.deny,/etc/nsswitch.conf,/usr/share/misc/file/magic,/usr/share/file/magic,/usr/share/file/magic.mgc
     400#mkbmbasefiles lsb-3.2 = /usr/share/misc/file/magic,/usr/share/misc/magic.mgc
     401## Dirs to add
     402mkbmbasedirs linux =
     403# Commands to add
     404mkbmbasecmds linux = file,bzip2,bunzip2,bash,date,ctrlaltdel,wc,xargs,less,ldconfig,tee,efibootmgr,lilo,grub,elilo,fdisk,parted
     405#
     406# To support debug
     407mkbmbbgfiles linux =
     408mkbmbbgcmds linux = ldd,strace,valgrind,dmidecode,lsusb,lshw,lspci,ethtool
     409mkbmbbgdirs linux = /usr/lib/valgrind,/usr/lib64/valgrind
    393410
    394411# Where are the ISO bootloader for this OS
  • devel/pbmkbm/bin/pbmkbm

    r1402 r1403  
    405405
    406406# Create the directory structure needed on the target dir
    407 $targettree->{"/bin"} = "dir";
    408 
     407my ($tdirs,$bdirs,$bfiles,$bcmds) = pb_distro_get_param($pbos,pb_conf_get("mkbmtargetdirs","mkbmbootdirs","mkbmbootfiles","mkbmbootcmds");
     408# Create empty dirs for these
     409foreach my $d (split(/,/,$tdirs)) {
     410    $targettree->{$d} = "emptydir";
     411}
     412# And copy dirs for those
     413foreach my $d (split(/,/,$bdirs)) {
     414    if (-d $d) {
     415        $targettree->{$d} = "dir";
     416    } else {
     417        pb_log(
     418}
     419foreach my $f (split(/,/,$bfiles)) {
     420    $targettree->{$d} = "dir";
     421}
    409422# Once the environment is made, add what is needed for this boot media to it.
    410423# Keyboard
     
    416429# init
    417430# BootLoader and its configuration
    418 # Additional data files coming from a potential caller (MondoRescue e.g. with fstab, LVM, mountlist, ...)
     431# Additional data files coming from a potential caller (MondoRescue/Mindi e.g. with fstab, LVM, mountlist, ...)
    419432}
    420433
Note: See TracChangeset for help on using the changeset viewer.