| 1 |
arch-chroot(8) |
| 2 |
============== |
| 3 |
|
| 4 |
Name |
| 5 |
---- |
| 6 |
arch-chroot - enhanced chroot command |
| 7 |
|
| 8 |
Synopsis |
| 9 |
-------- |
| 10 |
arch-chroot [options] chroot-dir [command] [arguments...] |
| 11 |
|
| 12 |
Description |
| 13 |
----------- |
| 14 |
arch-chroot wraps the linkman:chroot[1] command while ensuring that important |
| 15 |
functionality is available, e.g. mounting '/dev/', '/proc' and other API |
| 16 |
filesystems, or exposing linkman:resolv.conf[5] to the chroot. |
| 17 |
|
| 18 |
If 'command' is unspecified, arch-chroot will launch */bin/bash*. |
| 19 |
|
| 20 |
[NOTE] |
| 21 |
====== |
| 22 |
The target chroot-dir *should* be a mountpoint. This ensures that tools such as |
| 23 |
linkman:pacman[8] or linkman:findmnt[8] have an accurate hierarchy of the |
| 24 |
mounted filesystems within the chroot. If your chroot target is not a |
| 25 |
mountpoint, you can bind mount the directory on itself to make it a mountpoint, |
| 26 |
i.e.: |
| 27 |
|
| 28 |
'mount --bind /your/chroot /your/chroot' |
| 29 |
====== |
| 30 |
|
| 31 |
|
| 32 |
Options |
| 33 |
------- |
| 34 |
|
| 35 |
*-S*:: |
| 36 |
Run in systemd mode. This will spawn a transient systemd service via |
| 37 |
linkman:systemd-run[1] and delegates namespace/chroot management to |
| 38 |
the service manager. |
| 39 |
|
| 40 |
*-N*:: |
| 41 |
Run in unshare mode. This will use linkman:unshare[1] to create a new |
| 42 |
mount and user namespace, allowing regular users to create new system |
| 43 |
installations. |
| 44 |
|
| 45 |
*-u <user>[:group]*:: |
| 46 |
Specify non-root user and optional group to use. |
| 47 |
|
| 48 |
*-r*:: |
| 49 |
Do not change the resolv.conf within the chroot. This means that the resolver |
| 50 |
might not work in the chroot, which could be the required state. |
| 51 |
|
| 52 |
*-h*:: |
| 53 |
Output syntax and command line options. |
| 54 |
|
| 55 |
See Also |
| 56 |
-------- |
| 57 |
|
| 58 |
linkman:pacman[8] |