creates drives

This commit is contained in:
log :3 2022-10-12 11:42:52 +11:00
parent 587ad62fe9
commit 74e515f47c
1 changed files with 24 additions and 0 deletions

View File

@ -10,3 +10,27 @@ if [ $INTERNETCONNECTION = n ]
clear clear
exit exit
fi fi
clear
timedatectl set-ntp true
ntpd -qg
hwclock -w
clear
parted /dev/sda mklabel gpt
parted /dev/sda mkpart "EFI" fat32 1MiB 301MiB
parted /dev/sda set 1 esp on
parted /dev/sda mkpart "swap" linux-swap 301MiB 8GiB
parted /dev/sda mkpart "root" ext4 8GiB 100%
mkfs.ext4 /dev/sda3
mkswap /dev/sda2
mkfs.fat -F 32 /dev/sda1
mount /dev/sda3 /mnt
mount --mkdir /dev/sda1 /mnt/boot
swapon /dev/sda2