Bootstrap scripts for all my stuff
Go to file
Salt 272ce9e21b Remove cleanup on exit
Hey if you wanna save bandwidth and be nicer to distro maintainers, you probably shouldn't delete your tarball after every attempt
2020-12-02 19:35:13 -06:00
.gitignore Initial commit 2018-08-24 17:30:41 -05:00
bootstrap.sh Configure showUntrackedFiles 2020-09-16 11:48:18 -05:00
build-home.sh Correct some typos in the original 2020-08-10 23:35:50 -05:00
gentoostrap.sh Remove cleanup on exit 2020-12-02 19:35:13 -06:00
LICENSE License under MIT 2018-08-24 22:52:14 +00:00
README.md Work on a Gentoo bootstrap script 2020-11-29 21:39:44 -06:00

Salt's Bootstrap Script

A script to bootstrap a user with git and some auxiliary tools.

Building User Home

Download and run the latest bootstrap.sh:

cd
git clone https://git.9iron.club/salt/bootstrap
./bootstrap/bootstrap.sh $HOME

In the event that you want to simply test bootstrap.sh, simply pass a different argument to it:

./bootstrap/bootstrap.sh -d /path/to/directory

See bootstrap.sh -h for more usage information.

Building a Gentoo Install

First, partition out the system and build a filesystem tree in /mnt.

Then, download and run the latest gentoostrap.sh:

cd
git clone https://git.9iron.club/salt/bootstrap
sudo ./bootstrap/gentoostrap.sh

The script supports a fair few arguments, so it's worth looking into gentoostrap.sh -h if you need to customize the system.

Note that this is highly specific to my environment. Most of the configuration management is done in Ansible, but this will create a user with my own personal setup.

Older Versions

build-home.sh is an older version of the script kept here for legacy compatibility. Do not use it; use bootstrap.sh.

Notes

  • By default, the user's home directory will be bootstrapped. Passing -d and a different path will cause a different path to be bootstrapped.

  • By default, the repository will be cloned over SSH. Either generate some keys and add them to your remote server or change the repository URI to HTTP.