-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_chroot.sh
39 lines (30 loc) · 903 Bytes
/
install_chroot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Important: /mnt and /mnt/boot must be mounted
source ./settings
SCRIPT_DIRECTORY="./scripts"
STEP=1
function stepInput {
# args: $text, script_path
read -p "$1" -n 1 yn
echo ""
case $yn in
[Nn]* ) ;;
* ) sh "$2";;
esac
}
# Set hostname
stepInput "${STEP}) Set hostname? (Y/n): " ${SCRIPT_DIRECTORY}/set_hostname.sh
STEP=$((STEP+1))
# Set timezone
stepInput "${STEP}) Set timezone? (Y/n): " ${SCRIPT_DIRECTORY}/set_timezone.sh
STEP=$((STEP+1))
# Set locale
stepInput "${STEP}) Set locale? (Y/n): " ${SCRIPT_DIRECTORY}/set_locale.sh
STEP=$((STEP+1))
# Install packages
stepInput "${STEP}) Install base packages? (Y/n): " ${SCRIPT_DIRECTORY}/install_base_packages.sh
STEP=$((STEP+1))
# Install video drivers
stepInput "${STEP}) Install video drivers? (Y/n): " ${SCRIPT_DIRECTORY}/install_video_drivers.sh
STEP=$((STEP+1))
echo "chroot installation complete :)"