Bug 115732

Summary: [patch] Update to NanoBSD article - added a section on installing packages
Product: Documentation Reporter: John Ferrell <jdferrell3>
Component: Books & ArticlesAssignee: Gabor Kovesdan <gabor>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description John Ferrell 2007-08-22 21:40:01 UTC
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>
Comment 1 Gabor Kovesdan freebsd_committer freebsd_triage 2007-12-21 15:36:55 UTC
Responsible Changed
From-To: freebsd-doc->gabor

Take.
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-12-21 21:19:58 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"
Comment 3 Gabor Kovesdan freebsd_committer freebsd_triage 2007-12-21 21:55:53 UTC
State Changed
From-To: open->closed

Committed, thanks! You will see the change some hours later, when our 
doc set has been rebuilt from sources.