-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathip1.sh
executable file
·37 lines (30 loc) · 881 Bytes
/
ip1.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
#!/bin/bash
#creates a standard barebones setup, run in standard live media
#set date time
timedatectl set-ntp true
#do the partitioning
echo "do partitioning now"
echo "create /dev/sda1 as boot partition, /dev/sda2 as swap, /dev/sda3 as file system"
echo "part type EF00=efi, EF02 as bios boot, part type 8200=swap"
gdisk /dev/sda
mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
mkfs.ext4 /dev/sda3
swapon /dev/sda2
mount /dev/sda3 /mnt
mkdir /mnt/efi
mount /dev/sda1 /mnt/efi
#pacstrap base base-devel
pacstrap /mnt base base-devel linux linux-firmware neovim git wget curl
#gen fstab
genfstab -U /mnt >> /mnt/etc/fstab
#load install scripts
cd /
curl -L -O https://github.com/Michae11s/dots/archive/main.zip
pacman -Sy --noconfirm unzip
unzip main.zip
mv dots-main /mnt/dots/
arch-chroot /mnt /dots/ip2.sh
cd /
umount -R /mnt
echo "Install complete, reboot to a fresh install"