Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.4 KB

INSTALL.md

File metadata and controls

69 lines (43 loc) · 1.4 KB

Install

Preface

This is a quick and dirty guide.
Expect this to be fleshed out over many pages with lengthy explanations in the actual handbook.


  1. clone
git clone http://github.com/bonsai-linux/bonsai
cd bonsai
  1. set chroot location
export ROOT=/path/to/chroot

Decide where you want your chroot to be built.
bonsai and its makefile reads this variable from the environment.

  1. build and install
make
make install

The above will compile all the scripts into one executable, strip it of comments/blank lines, then install it to your $ROOT location.

  1. bootstrap
./tools/bootstrap.sh

This will create dirs, assign permissions, and install the base system.

Finally, it will relink your packages with $ROOT=/ so symlinks will function inside the chroot.

  1. chroot

./tools/chroot.sh

This will mount needed folders and chroot inside.

  1. exit

Exit the chroot. Drives will be unmounted automatically.


If the above all completed successfully, congratulations!
You have just installed your bonsai chroot!


Post-Install

Many key programs will be missing from your chroot with only @stage0 installed.
Once chrooted in, you should then bonsai @stage1 to finish your installation.