Gentoo Linux Install Scripts
This will cause destructive file system changes
Boot from a Live CD and run:
curl -L https://api.github.com/repos/rstar284/genstaller/tarball > genstaller.tar.gz
tar xvf genstaller.tar.gz
rm -rf genstaller.tar.gz
cd Rstar284-genstaller-*
bash install.sh
Without any user defined configuration genstall will attempt to install a basic Gentoo system as per the Gentoo Handbook.
Additional settings can be configured in genstall.d/00-settings.sh, such as enabling LVM, installing custom software (Puppet, Chef, ect), and setting metadata (hostname, root password, network settings).
Variables in genstaller.d/settings.sh prefixed with _ are internal variables and should not be changed.
Variable | Value |
---|---|
DIST_MIRROR | Portage Distfile Mirror(s) |
BOOT_SIZE | Size of the boot partition, eg: +256M |
SWAP_SIZE | Size of the swap partition, eg: +1G |
ROOT_SIZE | Size of the root partition, eg: +48G |
BOOT_FS | The file system of the boot partition, eg: fat |
ROOT_FS | The file system of the root partition, eg: ext4 |
DRIVE_NAME | The drive name to be used, eg: vda |
TIMEZONE | The system's timezone, eg: Europe/London |
HOSTNAME | The system's hostname, eg: gentoo-linux |
PASSWORD | The system's root password |
SOFTWARE | Applications to be installed, eg: syslog, cron and sudo |
DAEMONS | Daemons to be added to the default runlevel, eg: sshd |
PROFILE | The gentoo profile to use |
USER_NAME | The user name for the user to be created |
USER_PASSWORD | The password for the user to be created |
USER_GROUPS | The groups to be added to the user which will be created |
Have fun with my script :)