From owner-freebsd-current@FreeBSD.ORG Thu Oct 20 12:49:48 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D9CA16A41F for ; Thu, 20 Oct 2005 12:49:48 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E05943D7F for ; Thu, 20 Oct 2005 12:49:44 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 3EECCBC7A; Thu, 20 Oct 2005 12:49:40 +0000 (UTC) To: Jiri Mikulas From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 20 Oct 2005 12:54:19 +0200." <4357775B.9030909@mikulas.com> Date: Thu, 20 Oct 2005 14:49:41 +0200 Message-ID: <25271.1129812581@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-current@freebsd.org Subject: Re: nanobsd.sh X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 12:49:48 -0000 In message <4357775B.9030909@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@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.