aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinsoo Choo <minsoochoo0122@proton.me>2023-11-27 15:04:53 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2023-11-27 15:05:00 +0000
commit02d9ae11650e82b2129f80d3e19a826e7c731585 (patch)
tree7e1d4fc216650de88a948f82a1552b87af0b1d38
parent213283f43f66c0cc6836f74bc9175f231f366e7e (diff)
downloaddoc-02d9ae1165.tar.gz
doc-02d9ae1165.zip
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
-rw-r--r--documentation/content/en/articles/nanobsd/_index.adoc10
1 files changed, 10 insertions, 0 deletions
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.