-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patharchx.sh
48 lines (45 loc) · 2.21 KB
/
archx.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
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -a
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
SCRIPTS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/scripts
CONFIGS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/configs
set +a
pacman -Sy --noconfirm
pacman -S --noconfirm --needed terminus-font
alias pacman='pacman --color always'
alias yay='yay --color always'
setfont ter-v22b
clear
echo -nE "
_____ __ _____
/ _ \ _______ ____ | |__ / \ ____ ____ __ __
/ /_\ \ \_ __ \/ ___\ | | \ / \ / \/ __ \ / \ | | \
/ | \ | | \/\ \___ | Y \ / Y \ ___/ | | \| | /
\____|__ / |__| \___ >|___| / \____|__ /\___ >|___| /|____/
\/ \/ \/ \/ \/ \/
_____________________________________
\ Automated Arch Linux Installer /
\_________________________________/
"
( bash $SCRIPT_DIR/scripts/startup.sh )|& tee startup.log
source $CONFIGS_DIR/setup.conf
( bash $SCRIPT_DIR/scripts/0-preinstall.sh )|& tee 0-preinstall.log
( arch-chroot /mnt $HOME/ArchX/scripts/1-setup.sh )|& tee 1-setup.log
if [[ ! $DESKTOP_ENV == server ]]; then
( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchX/scripts/2-user.sh )|& tee 2-user.log
fi
( arch-chroot /mnt $HOME/ArchX/scripts/3-post-setup.sh )|& tee 3-post-setup.log
mkdir -p /mnt/home/$USERNAME/.cache/archx/
cp -v *.log /mnt/home/$USERNAME/.cache/archx/
echo -nE "
__________ __ __ __
\_ _____/|__| ____ |__| ______| |__
| __) | | / \ | | / ___/| | \
| \ | || | \| | \___ \ | Y \
\__ / |__||___| /|__|/____ >|___| /
\/ \/ \/ \/
_____________________________________
\ Automated Arch Linux Installer /
\_________________________________/
Done - Please Eject Install Media and Run reboot
"