37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
# Elf OS
|
|
|
|
> Work in progress! slowly but surely.
|
|
|
|
An install script I (LailaTheElf) use to install Arch Linux on my computers. I
|
|
use this for my desktop (elfDesktop) and laptop (elfLaptop).
|
|
|
|
## Usage
|
|
|
|
```
|
|
./elf_os.sh <config_file> <action>
|
|
|
|
action:
|
|
install: install the full os
|
|
reinstall_a: re install os on system A
|
|
reinstall_b: re install os on system B
|
|
bootloader: re setup the bootloader
|
|
```
|
|
|
|
The config file is included with bash. The following options are available:
|
|
|
|
- `HOSTNAME`: hostname for the machine
|
|
- `UEFI_DISK`: path to disk to store the UEFI
|
|
- `DISK`: path to disk to store the os data
|
|
- `USERNAME`: username of the first user
|
|
- `SSH_KEY_REPO`: url to git repository to gather ssh public keys
|
|
- `USER_SSH_KEYS`: list (space separated) of filenames in the `SSH_KEY_REPO` to
|
|
add to the *authorized_keys* of `USERNAME`
|
|
- `ENCRYPT_DISK`: 'true' to enable LUKS disk encryption
|
|
- `SFDISK_FILE`: sfdisk backup file with the partiton information
|
|
- `UEFI_PARTITION`: partition to use for UEFI (for example `${UEFI_DISK}1`)
|
|
- `SWAP_PARTITION`: partition to use for swap (for example `${DISK}2`)
|
|
- `ROOT_PARTITION`: partition to use for data (for example `${DISK}3`)
|
|
- `INSTALL_PARTS`: list (comma or space separated) of parts to run after
|
|
instalation. Parts are stored in *configs/install_`<part_name>`.sh*
|
|
|