In message <4357775B.9030909_at_mikulas.com>, Jiri Mikulas writes: > http://www.freebsd.org/projects/nanobsd/index.html >is for old one. I'm working on an update. >How to create own config ? Basically write a shell file where you set the various variables to the values you want. Here is my private example: #!/bin/sh # Copyright (c) 2005 Poul-Henning Kamp. # # See /usr/share/examples/etc/bsd-style-copyright for license terms. # # $FreeBSD: src/tools/tools/nanobsd/nanobsd.sh,v 1.1 2005/07/26 18:52:50 phk Exp $ # # Name of this NanoBSD build. (Used to construct workdir names) NANO_NAME=phk256 # Source tree directory NANO_SRC=/usr/src # Object tree directory # default is subdir of /usr/obj # XXX: MAKEOBJDIRPREFIX handling... ? #NANO_OBJ="" # Parallel Make NANO_PMAKE="make -j 5" # Options to put in make.conf during buildworld only CONF_BUILD=' NO_HESIOD_LIBC=YES NO_KLDLOAD=YES NO_NETGRAPH=YES NO_PAM=YES PPP_NO_NETGRAPH=YES PPP_NO_RADIOS=YES ' # Options to put in make.conf during installworld only CONF_INSTALL=' NO_ACPI=YES NO_AUTHPF=YES NO_BLUETOOTH=YES NO_CVS=YES NO_CXX=YES NO_DICT=YES NO_FORTRAN=YES NO_GCOV=YES NO_GDB=YES NO_HTML=YES NO_LPR=YES NO_MAN=YES NO_OBJC=YES NO_P1003_1B=YES NO_PF=YES NO_PROFILE=YES NO_SENDMAIL=YES NO_SHAREDOCS=YES NO_TOOLCHAIN=YES NO_EXAMPLES=YES NO_INSTALLLIB=YES NO_CALENDAR=YES NO_MISC=YES NO_MAKE=YES ' # Options to put in make.conf during both build- & installworld. CONF_WORLD=' NO_ATM=YES NO_I4B=YES NO_INET6=YES NO_IPFILTER=YES NO_KERBEROS=YES NO_NIS=YES NO_RCMDS=YES NO_GAMES=YES NO_RESCUE=YES PPP_NO_NETGRAPH=YES PPP_NO_RADIUS=YES NO_LOCALES=YES NO_SYSCONS=YES NO_GROFF=YES NO_NLS=YES NO_PCVT=YES NO_IPX=YES NO_INFO=YES ' # Kernel config file to use NANO_KERNEL=PHK256 FlashDevice Sandisk 256MB # Number of code images on media (1 or 2) NANO_IMAGES=2 # Size of code file system in 512 bytes sectors # If zero, size will be as large as possible. NANO_CODESIZE=240608 # Size of configuration file system in 512 bytes sectors NANO_CONFSIZE=20480 # Size of data file system in 512 bytes sectors NANO_DATASIZE=0 customize_cmd cust_comconsole customize_cmd cust_allow_ssh_root customize_cmd cust_install_files ntpns_ppsapitest () ( cd /usr/src/tools/test/ppsapi make obj make all install DESTDIR=${NANO_WORLDDIR}/root ) customize_cmd ntpns_ppsapitest phk_pkg () ( mkdir -p ${NANO_WORLDDIR}/Pkg cp /usr/src/tools/tools/nanobsd/Pkg/* ${NANO_WORLDDIR}/Pkg chroot ${NANO_WORLDDIR} sh -c 'pkg_add -v Pkg/*' rm -rf ${NANO_WORLDDIR}/Pkg ) customize_cmd phk_pkg phk_ssh () ( mkdir -p ${NANO_WORLDDIR}/root/.ssh cp /root/.ssh/authorized_keys2 ${NANO_WORLDDIR}/root/.ssh ) customize_cmd phk_ssh -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk_at_FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.Received on Thu Oct 20 2005 - 10:49:48 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:45 UTC