From owner-freebsd-current@FreeBSD.ORG Sun Oct 24 02:19:26 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CCA6106564A; Sun, 24 Oct 2010 02:19:26 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id DC6A68FC13; Sun, 24 Oct 2010 02:19:25 +0000 (UTC) Received: by wwb24 with SMTP id 24so2145373wwb.31 for ; Sat, 23 Oct 2010 19:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=0P86+77CBkonO7x4MgL1GcsbNPg9swkdc4Royj6wbFM=; b=HxYFJBPYHKF09m+8IgrPFqa+aWkjIUv6a6zF5AIX7JNJkYHsdFtt9MYzLg8QdmQpuj nvB4XAyT3RoDf0jvwdwNkvNciME93Vw2DslpD35assdcnxuE98wzSM9owmyf8WjFPaqZ akPIlUXKDqF/Rkn+o5W1Eq9erO3SbMDS5Q7dE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=n484bHG1xfkyohK8HlJsXZvzsT9x1fLeKK3kmswY0nb1ysL6ioQUkZMhgmztHus0gw DX7llXrpg1DQRTRyCF7NpHBFDBWWKBnACPhkzyGREy1+9LA/8dGZzsqAtTWlYXEXJ9N3 JxhNxqweDwatxsWY6ocnB2joIvSqTbK4s3CY4= MIME-Version: 1.0 Received: by 10.216.240.198 with SMTP id e48mr1340205wer.0.1287886764026; Sat, 23 Oct 2010 19:19:24 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.216.10.198 with HTTP; Sat, 23 Oct 2010 19:19:23 -0700 (PDT) In-Reply-To: <1287873322.2580.16.camel@home-yahoo> References: <1287866401.2580.5.camel@home-yahoo> <1287873322.2580.16.camel@home-yahoo> Date: Sat, 23 Oct 2010 19:19:23 -0700 X-Google-Sender-Auth: 1Z9ChED5xwF-2GAbFjviFL9TQ_Y Message-ID: From: Garrett Cooper To: "sbruno@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current Subject: Re: Small /etc/src.conf 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: Sun, 24 Oct 2010 02:19:26 -0000 On Sat, Oct 23, 2010 at 3:35 PM, Sean Bruno wrote: > On Sat, 2010-10-23 at 14:21 -0700, Rob Farmer wrote: >> On Sat, Oct 23, 2010 at 13:40, Sean Bruno wrote: >> > Anyone have a src.conf + make.conf that I can steal to build a small >> > installation of BSD? =A0I've been trying to shrink the installation so= I >> > can cram an ISO of BSD across the network into a remote installation >> > thing in an HP box. >> >> Have you checked this: >> http://phk.freebsd.dk/misc/build_options/ >> >> I'm not sure exactly what you're looking for, but in my experience (I >> care more about build time than size though, and still want a fairly >> functional system) these are the most important variables to set: >> >> NO_MODULES (stick everything in the kernel - tons of stuff is built >> twice, like ufs support) >> WITHOUT_PROFILE >> WITHOUT_LIB32 >> WITHOUT_CLANG >> WITHOUT_KERBEROS >> WITHOUT_CDDL >> >> Some of the options involving src/share like WITHOUT_LOCALES seem to >> kill a lot of files too. >> >> Everything else either just skips a couple files (of course, that can >> add up) or starts to cut into basic functionality (like no man pages), >> IMHO. >> > > Thanks for the clue, I've come up with some stuff now that got me down > to ~100MB, but I think I can go smaller. > src.conf: > WITHOUT_AMD=3Dtrue > WITHOUT_APM=3Dtrue > WITHOUT_BIND=3Dtrue > WITHOUT_BSNMP=3Dtrue > WITHOUT_BSD_CPIO=3Dtrue > WITHOUT_BZIP2=3Dtrue > WITHOUT_BLUETOOTH=3Dtree > WITHOUT_CDDL=3Dtrue > WITHOUT_CLANG=3Dtrue > WITHOUT_CPP=3Dtrue > WITHOUT_CRYPT=3Dtrue > WITHOUT_CTM=3Dtrue > WITHOUT_CVS=3Dtrue > WITHOUT_CXX=3Dtrue > WITHOUT_DICT=3Dtrue > WITHOUT_EXAMPLES=3Dtrue > WITHOUT_FREEBSD_UPDATE=3Dtrue > WITHOUT_GAMES=3Dtrue > WITHOUT_GDB=3Dtrue > WITHOUT_GNU=3Dtrue > WITHOUT_GPIB=3Dtrue > WITHOUT_GROFF=3Dtrue > WITHOUT_GCOV=3Dtrue > WITHOUT_HTML=3Dtrue > WITHOUT_INET6=3Dtrue > WITHOUT_INFO=3Dtrue > #WITHOUT_INSTALLLIB=3Dtrue > WITHOUT_IPFILTER=3Dtrue > WITHOUT_IPFW=3Dtrue > WITHOUT_IPX=3Dtrue > WITHOUT_IPX_SUPPORT=3Dtrue > WITHOUT_JAIL=3Dtrue > WITHOUT_LIB32=3Dtrue > WITHOUT_LOCATE=3Dtrue > WITHOUT_LPR=3Dtrue > WITHOUT_MAIL=3Dtrue > WITHOUT_MAN=3Dtrue > WITHOUT_NCP=3Dtrue > WITHOUT_NDIS=3Dtrue > WITHOUT_NETGRAPH=3Dtrue > WITHOUT_NIS=3Dtrue > WITHOUT_NLS=3Dtrue > WITHOUT_NLS_CATALOGS=3Dtrue > WITHOUT_NS_CACHING=3Dtrue > WITHOUT_NTP=3Dtrue > WITHOUT_OBJC=3Dtrue > WITHOUT_PAM=3Dtrue > WITHOUT_PF=3Dtrue > WITHOUT_PORTSNAP=3Dtrue > WITHOUT_PPP=3Dtrue > WITHOUT_PROFILE=3Dtrue > WITHOUT_QUOTAS=3Dtrue > WITHOUT_RCMDS=3Dtrue > WITHOUT_RCS=3Dtrue > WITHOUT_RESCUE=3Dtrue > WITHOUT_ROUTED=3Dtrue > WITHOUT_SHAREDOCS=3Dtrue > WITHOUT_SYSINSTALL=3Dtrue > WITHOUT_TCSH=3Dtrue > WITHOUT_TELNET=3Dtrue > WITHOUT_TOOLCHAIN=3Dtrue > WITHOUT_WIRELESS=3Dtrue > > make.conf: > NO_MODULES=3Dtrue > NO_SHARE=3Dtrue Looks about right (I don't optimize things that much in all cases, but I've come close before). Here's a PR I opened that would tune the rc.d scripts, because you'll probably notice that there's a ton of noise involved at bootup when you do the above items: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dconf/145344 If desired, I can update the patch with latest HEAD for the PR. I would need for someone to review the item though and help commit it. Thanks! -Garrett