From nobody@FreeBSD.org  Wed Aug 22 20:35:16 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 70A0E16A419
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Aug 2007 20:35:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5EF5F13C480
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Aug 2007 20:35:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7MKZGoc017340
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Aug 2007 20:35:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7MKZGur017339;
	Wed, 22 Aug 2007 20:35:16 GMT
	(envelope-from nobody)
Message-Id: <200708222035.l7MKZGur017339@www.freebsd.org>
Date: Wed, 22 Aug 2007 20:35:16 GMT
From: John Ferrell <jdferrell3@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Update to NanoBSD article - added a section on installing packages
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115732
>Category:       docs
>Synopsis:       [patch] Update to NanoBSD article - added a section on installing packages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gabor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 22 20:40:01 GMT 2007
>Closed-Date:    Fri Dec 21 21:56:03 UTC 2007
>Last-Modified:  Fri Dec 21 21:56:03 UTC 2007
>Originator:     John Ferrell
>Release:        6.2
>Organization:
>Environment:
FreeBSD promethium 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:40:53 UTC 2007     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
This is a diff for doc/en_US.ISO8859-1/articles/nanobsd/article.sgml.  It adds a section on installing packages on NanoBSD.  I searched the various mailing lists for this information so I thought it might be a nice addition to the NanoBSD article.

--- article.sgml.orig   Mon Jul 23 22:57:22 2007
+++ article.sgml        Wed Aug 22 14:27:48 2007
@@ -325,6 +325,23 @@
        </itemizedlist>
       </sect3>
 
+     <sect3>
+        <title>Adding packages</title>
+
+        <para>Packages can be added to a <application>NanoBSD</application> image using a custom function.  The following 
+fuction will install all the packages located in <filename>/usr/src/tools/tools/nanobsd/packages</filename>:</para>
+
+<programlisting>install_packages () (
+       mkdir -p ${NANO_WORLDDIR}/packages
+    cp /usr/src/tools/tools/nanobsd/packages/* ${NANO_WORLDDIR}/packages
+    chroot ${NANO_WORLDDIR} sh -c 'cd packages; pkg_add -v *;cd ..;'
+    rm -rf ${NANO_WORLDDIR}/packages
+)
+customize_cmd install_packages</programlisting>
+    </sect3>
+
+
+
       <sect3>
        <title>Configuration file example</title>
 
@@ -381,7 +398,9 @@
 customize_cmd cust_install_files
 customize_cmd cust_allow_ssh_root
 customize_cmd cust_nobeastie</programlisting>
-      </sect3>
+     </sect3>
+
+
     </sect2>
 
     <sect2>

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->gabor 
Responsible-Changed-By: gabor 
Responsible-Changed-When: Fri Dec 21 15:36:55 UTC 2007 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115732 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/115732: commit references a PR
Date: Fri, 21 Dec 2007 21:19:58 +0000 (UTC)

 gabor       2007-12-21 21:19:54 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/articles/nanobsd article.sgml 
   Log:
   - Document how to install packages for a NanoBSD image
   
   PR:             docs/115732
   Submitted by:   John Ferrell <jdferrell3@yahoo.com>
   
   Revision  Changes    Path
   1.3       +17 -0     doc/en_US.ISO8859-1/articles/nanobsd/article.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: gabor 
State-Changed-When: Fri Dec 21 21:55:53 UTC 2007 
State-Changed-Why:  
Committed, thanks! You will see the change some hours later, when our 
doc set has been rebuilt from sources. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115732 
>Unformatted:
