docs/115732: [patch] Update to NanoBSD article - added a section on installing packages

John Ferrell jdferrell3 at yahoo.com
Wed Aug 22 20:40:02 UTC 2007


>Number:         115732
>Category:       docs
>Synopsis:       [patch] Update to NanoBSD article - added a section on installing packages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 22 20:40:01 GMT 2007
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-doc mailing list