From owner-freebsd-doc@FreeBSD.ORG Wed Aug 22 20:40:02 2007 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A35716A41A for ; Wed, 22 Aug 2007 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0835613C481 for ; Wed, 22 Aug 2007 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7MKe1lr023934 for ; Wed, 22 Aug 2007 20:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7MKe1EI023933; Wed, 22 Aug 2007 20:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 22 Aug 2007 20:40:01 GMT Resent-Message-Id: <200708222040.l7MKe1EI023933@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Ferrell Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70A0E16A419 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/115732: [patch] Update to NanoBSD article - added a section on installing packages X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 20:40:02 -0000 >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@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 @@ + + Adding packages + + Packages can be added to a NanoBSD image using a custom function. The following +fuction will install all the packages located in /usr/src/tools/tools/nanobsd/packages: + +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 + + + + Configuration file example @@ -381,7 +398,9 @@ customize_cmd cust_install_files customize_cmd cust_allow_ssh_root customize_cmd cust_nobeastie - + + + >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: