- Timestamp:
- Feb 3, 2012, 12:17:07 AM (13 years ago)
- Location:
- devel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf
r1402 r1403 386 386 logcommands pbmkbm = mount,lsmod,esxcfg-module -l,df -T 387 387 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) 390 mkbmtargetdirs linux = /tmp,/dev 391 # In term of dirs from the original to copy to the target 392 mkbmbootdirs 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 394 mkbmbootfiles 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 396 mkbmbootcmds 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 399 mkbmbasefiles 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 402 mkbmbasedirs linux = 403 # Commands to add 404 mkbmbasecmds linux = file,bzip2,bunzip2,bash,date,ctrlaltdel,wc,xargs,less,ldconfig,tee,efibootmgr,lilo,grub,elilo,fdisk,parted 405 # 406 # To support debug 407 mkbmbbgfiles linux = 408 mkbmbbgcmds linux = ldd,strace,valgrind,dmidecode,lsusb,lshw,lspci,ethtool 409 mkbmbbgdirs linux = /usr/lib/valgrind,/usr/lib64/valgrind 393 410 394 411 # Where are the ISO bootloader for this OS -
devel/pbmkbm/bin/pbmkbm
r1402 r1403 405 405 406 406 # Create the directory structure needed on the target dir 407 $targettree->{"/bin"} = "dir"; 408 407 my ($tdirs,$bdirs,$bfiles,$bcmds) = pb_distro_get_param($pbos,pb_conf_get("mkbmtargetdirs","mkbmbootdirs","mkbmbootfiles","mkbmbootcmds"); 408 # Create empty dirs for these 409 foreach my $d (split(/,/,$tdirs)) { 410 $targettree->{$d} = "emptydir"; 411 } 412 # And copy dirs for those 413 foreach my $d (split(/,/,$bdirs)) { 414 if (-d $d) { 415 $targettree->{$d} = "dir"; 416 } else { 417 pb_log( 418 } 419 foreach my $f (split(/,/,$bfiles)) { 420 $targettree->{$d} = "dir"; 421 } 409 422 # Once the environment is made, add what is needed for this boot media to it. 410 423 # Keyboard … … 416 429 # init 417 430 # 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, ...) 419 432 } 420 433
Note:
See TracChangeset
for help on using the changeset viewer.