aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: f4660047563cde7e21d6e3444d8a346acdef22a1 (plain)
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
#!/bin/sh
cd $(dirname "$(readlink -f "$0")")
if [ ! -e work/pacman ]; then
    mkdir work
    touch work/pacman
    sed 's:#.*$::' packages | xargs pacman -Syu --needed --noconfirm
fi

ip link
export USE=czar
rm -r /etc/skel
mkdir /etc/skel
grep "^$USE" /etc/passwd || useradd -m $USE
usermod $USE -aG wheel -s /bin/zsh
usermod $USE -aG video
usermod $USE -aG uucp # arduino port
timedatectl set-ntp true

sh regional.sh # Region specific setup
hwclock --systohc
locale-gen

sh mod.sh

sh config.sh
archlinux-java set java-8-openjdk
sh source.sh

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -P
sed 's:#.*$::' services | xargs systemctl enable

passwd