-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharch-install.sh
40 lines (28 loc) · 964 Bytes
/
arch-install.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
# Turn off PC beeps
rmmod pcspkr
# Set US keyboard layout
loadkeys us
# Change to better font
setfont ter-216n
# Update system clock
timedatectl set-ntp true
# Partition the SSD (found at /dev/nvme0n1)
parted --script /dev/nvme0n1 mklabel gpt mkpart fat32 1MiB 261MiB set 1 esp on mkpart ext4 261MiB 100%
# Encrypt disk
cryptsetup -y -v luksFormat /dev/nvme0n1p2
cryptsetup open /dev/nvme0n1p2 cryptroot
# Create filesystems
mkfs.fat -F32 /dev/nvme0n1p1
mkfs.ext4 /dev/mapper/cryptroot
# Mount file systems
mount /dev/mapper/cryptroot /mnt
mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot
# Update mirrorlist
reflector -c US --save /etc/pacman.d/mirrorlist
# Install essential packages
pacstrap /mnt base linux linux-firmware git vim man-db man-pages efibootmgr amd-ucode terminus-font sudo firefox ttf-inconsolata pinentry zsh-syntax-highlighting go zsh
# Generate fstab
genfstab -U /mnt >> /mnt/etc/fstab
# Change root into new system
arch-chroot /mnt