doc: Add arch-nspawn man page

This commit is contained in:
yoursweetie 2021-08-20 14:37:33 +08:00 committed by Jelle van der Waa
parent a9bf4789b3
commit 9028302ac7
No known key found for this signature in database
GPG Key ID: C06086337C50773E
3 changed files with 44 additions and 0 deletions

View File

@ -71,6 +71,7 @@ BASHCOMPLETION_LINKS = \
MANS = \
doc/archbuild.1 \
doc/arch-nspawn.1 \
doc/makechrootpkg.1 \
doc/lddd.1 \
doc/checkpkg.1 \

View File

@ -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[]

View File

@ -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