ARCH-CHROOT(8)
π ARCH-CHROOT(8) β the group-chat edition π
okay so bestie, gather round, because we're talking about arch-chroot from the ARCH-CHROOT(8) section of the manual, and honestly? it's a slay. it's the enhanced chroot command and it's literally about to make your life so much easier π«Ά
β¨ SYNOPSIS β¨
arch-chroot [options] chroot-dir [command] [arguments...]
like, that's the whole vibe check. options, then the chroot-dir, then optionally a command and its arguments... π
πΈ DESCRIPTION πΈ
so arch-chroot is a little wrapper around chroot(1) that makes sure all the important functionality is actually there, no cap. think of it as chroot but with its life together β¨ it handles mounting /dev/, /proc and the other API filesystems for you, and it exposes resolv.conf(5) to the chroot so the resolver works the way you'd expect. iconic behaviour, honestly.
and if you don't specify a command? no worries, arch-chroot will just launch /bin/bash for you. default main character energy π
π note, and this one's important: the targetchroot-dirshould lowkey be a mountpoint. like, actually be one. this is what ensures tools such aspacman(8)orfindmnt(8)have an accurate hierarchy of the mounted filesystems within the chroot. if your chroot target is not a mountpoint, you can bind mount the directory on itself to make it one, i.e.:
mount --bind /your/chroot /your/chroot
boom. mountpoint acquired. you're welcome π§
π¦ OPTIONS π¦
-Sβ run in systemd mode β¨ this spawns a transient systemd service viasystemd-run(1)and delegates namespace/chroot management to the service manager. very "let the manager handle it," very delegating queen π-Nβ run in unshare mode π this usesunshare(1)to create a new mount and user namespace, which means regular users can create new system installations. yes, regular users. we love accessibility π-u <user>[:group]β specify the non-root user, plus an optional group, to use. the syntax is<user>[:group], colon and all, don't forget it π-rβ do not change theresolv.confwithin the chroot π which means the resolver might not work in the chroot β and like, that could genuinely be the required state, so it's not a bug, it's a feature, periodt.-hβ output syntax and command line options. the classic "help me help you" flag π
π SEE ALSO π
pacman(8)β bestie, go read it, it's right there π
and that's the whole page, fr fr π this little masterpiece is from the ARCH-CHROOT(8) manual, dated 10/11/2026 β so if you see that date on the footer, that's just the source/version flexing on you. mwah, go chroot something gorgeous ππ
π¦ where this page comes from
- arch rolling: arch-install-scripts 32-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms