-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharch_install.sh
More file actions
40 lines (32 loc) · 809 Bytes
/
arch_install.sh
File metadata and controls
40 lines (32 loc) · 809 Bytes
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
#!/bin/sh
#Setting up time
echo "time : format '12:00'"
read input_time
timedatectl set-time $input_time
#partitioning disks
cfdisk
#formatting
echo "/ partition : "
read root_partition
echo "/boot partition :"
read boot_partition
mkfs.ext2 $boot_partition
mkfs.ext4 $root_partition
mount $root_partition /mnt
mkdir /mnt/boot
mount $boot_partition /mnt/boot
echo "/swap partition : "
read swap_partition
swapon $swap_partition
#installing system
echo "installing system..."
pacstrap /mnt base base-devel
#generating fstab
echo "generating fstab"
genfstab -U -p /mnt >> /mnt/etc/fstab
curl https://raw.githubusercontent.com/lp1dev/archlinux_install/master/arch_conf.sh > /mnt/arch_conf.sh
#chrooting inside the created system
arch-chroot /mnt sh ./arch_conf.sh
#umounting /mnt
umount -R /mnt
poweroff