1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-09-19 15:14:43 -04:00

Update install.sh

This commit is contained in:
TommyTran732 2021-05-22 04:41:57 -04:00 committed by tommytran732
parent b29d0aab6c
commit 82332b22a9
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -49,8 +49,8 @@ read -r -p "This will delete the current partition table on $DISK. Do you agree
response=${response,,}
if [[ "$response" =~ ^(yes|y)$ ]]
then
wipefs -af $DISK &>/dev/null
sgdisk -Zo $DISK &>/dev/null
wipefs -af "$DISK" &>/dev/null
sgdisk -Zo "$DISK" &>/dev/null
else
echo "Quitting."
exit
@ -69,7 +69,7 @@ cryptroot="/dev/disk/by-partlabel/cryptroot"
# Informing the Kernel of the changes.
echo "Informing the Kernel about the disk changes."
partprobe $DISK
partprobe "$DISK"
# Formatting the ESP as FAT32.
echo "Formatting the EFI Partition as FAT32."
@ -165,7 +165,7 @@ sed -i 's#,subvolid=258,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/sn
# Setting hostname.
read -r -p "Please enter the hostname: " hostname
echo $hostname > /mnt/etc/hostname
echo "$hostname" > /mnt/etc/hostname
# Setting up locales.
read -r -p "Please insert the locale you use in this format (xx_XX): " locale