summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authoryoursweetie <939696280@qq.com>2021-08-20 14:37:33 +0800
committerJelle van der Waa <jelle@archlinux.org>2021-09-08 22:13:36 +0200
commit9028302ac7cff713e54145928f74e4aff1d81c27 (patch)
tree13f360eb50a55e220d4160de87b117efddccdf93 /doc
parenta9bf4789b38b54ef79e13552bfa0f0f87fe268ba (diff)
downloaddevtools-9028302ac7cff713e54145928f74e4aff1d81c27.tar.xz
doc: Add arch-nspawn man page
Diffstat (limited to 'doc')
-rw-r--r--doc/arch-nspawn.1.asciidoc40
-rw-r--r--doc/devtools.7.asciidoc3
2 files changed, 43 insertions, 0 deletions
diff --git a/doc/arch-nspawn.1.asciidoc b/doc/arch-nspawn.1.asciidoc
new file mode 100644
index 0000000..22aa641
--- /dev/null
+++ b/doc/arch-nspawn.1.asciidoc
@@ -0,0 +1,40 @@
+arch-nspawn(1)
+==============
+
+Name
+----
+arch-nspawn - Run a command or OS in a light-weight namespace container
+
+Synopsis
+--------
+arch-nspawn [options] working-dir [systemd-nspawn arguments]
+
+Description
+-----------
+
+'arch-nspawn' is a wrapper around systemd-nspawn to run command or OS in a
+namespace container such as a directory including base utilities of a OS.
+It is used to build package(s) in given clean and defined environment.
+
+Options
+-------
+
+*-C* <file>::
+ Location of a pacman config file
+
+*-M* <file>::
+ Location of a makepkg config file
+
+*-c* <dir>::
+ Set pacman cache, if no directory is specified the passed pacman.conf's cachedir is used with a fallback to '/etc/pacman.conf'
+
+*-f* <file>::
+ Copy file from the host to the chroot
+
+*-s*::
+ Do not run setarch
+
+*-h*::
+ Show this usage message
+
+include::footer.asciidoc[]
diff --git a/doc/devtools.7.asciidoc b/doc/devtools.7.asciidoc
index 7718d5e..a207439 100644
--- a/doc/devtools.7.asciidoc
+++ b/doc/devtools.7.asciidoc
@@ -21,6 +21,9 @@ for details.
linkman:archbuild[1]
Build an Arch Linux package inside a clean chroot
+linkman:arch-nspawn[1]
+ Run a command or OS in a light-weight namespace container
+
linkman:checkpkg[1]
Compare the current build pakcage with the repository version