From fd82804710f7bbe88e83fb7dcb5a22cb21a1c365 Mon Sep 17 00:00:00 2001 From: Clayton Voges Date: Mon, 30 Aug 2021 06:31:00 +0000 Subject: [PATCH] Updated readme with install and config sections --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c3b05e3..5a5823a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,38 @@ # Alpine Chroot + +### Installation + To create a base alpine chroot on any alpine system, run: ```sh chmod +x *.sh ./alpine_init.sh ``` +But this is assuming your current working directory is the directory of the +cloned repository. -Assuming your current working directory is the directory of the cloned repository. +When it is your first time in the chroot, run: + +```sh +./chroot_init.sh +``` + + +### Usage + +Most people will go "into" the chroot via: + +```sh +chroot /mnt/chroot sh +``` + +But you must remember that you can just as well run any program in the chroot +as: + +```sh +chroot /mnt/chroot +``` + +Because **chroots are not jails, containers, or sandboxes**. They simply change +what the system sees as the "root" point of the file system.