From 02d9ae11650e82b2129f80d3e19a826e7c731585 Mon Sep 17 00:00:00 2001 From: Minsoo Choo Date: Mon, 27 Nov 2023 11:04:53 -0400 Subject: NanoBSD: add how to obtain the source code There is a request in the bugzilla report to introduce how to obtain the source code for building NanoBSD. I added more lines to the patch provided by the original reporter. PR: 274709 Reviewed by: mhorne Co-Authored-By: gaelan@fastmail.fm Differential Revision: https://reviews.freebsd.org/D42743 --- documentation/content/en/articles/nanobsd/_index.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/documentation/content/en/articles/nanobsd/_index.adoc b/documentation/content/en/articles/nanobsd/_index.adoc index f8dadb9314..a8f3ba03d6 100644 --- a/documentation/content/en/articles/nanobsd/_index.adoc +++ b/documentation/content/en/articles/nanobsd/_index.adoc @@ -108,6 +108,16 @@ Keeping [.filename]#/cfg# mounted at all times is not a good idea, especially if === Building a NanoBSD Image +The source code of FreeBSD is required to build NanoBSD. +To obtain the source code: + +[source,shell] +.... +# git clone https://git.FreeBSD.org/src.git /usr/src +.... + +For more details, follow the steps extref:{handbook}cutting-edge#updating-src-obtaining-src[here]. + A NanoBSD image is built using a simple [.filename]#nanobsd.sh# shell script, which can be found in the [.filename]#/usr/src/tools/tools/nanobsd# directory. This script creates an image, which can be copied on the storage medium using the man:dd[1] utility. -- cgit v1.2.3