From 01dbbf6f269821c6cc337a84b441243a681ac25e Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Thu, 25 Feb 2021 19:31:11 -0300 Subject: [PATCH] arch-chroot: add page (#5248) * Apply suggestions from code review Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> * Remove sh example * Apply suggestions from code review Co-authored-by: Starbeamrainbowlabs * Update pages/linux/arch-chroot.md Co-authored-by: Waldir Pimenta * Apply suggestions from code review Co-authored-by: Waldir Pimenta * Update pages/linux/arch-chroot.md Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs Co-authored-by: Waldir Pimenta --- pages/linux/arch-chroot.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/arch-chroot.md diff --git a/pages/linux/arch-chroot.md b/pages/linux/arch-chroot.md new file mode 100644 index 000000000..92c702369 --- /dev/null +++ b/pages/linux/arch-chroot.md @@ -0,0 +1,20 @@ +# arch-chroot + +> Enhanced `chroot` command to help in the Arch Linux installation process. +> More information: . + +- Start an interactive shell (`bash`, by default) in a new root directory: + +`arch-chroot {{path/to/new/root}}` + +- Specify the user (other than the current user) to run the shell as: + +`arch-chroot -u {{user}} {{path/to/new/root}}` + +- Run a custom command (instead of the default `bash`) in the new root directory: + +`arch-chroot {{path/to/new/root}} {{command}} {{command_arguments}}` + +- Specify the shell, other than the default `bash` (in this case, the `zsh` package should have been installed in the target system): + +`arch-chroot {{path/to/new/root}} {{zsh}}`