mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-09 20:21:34 -05:00
Update install.sh
This commit is contained in:
parent
b29d0aab6c
commit
82332b22a9
@ -49,8 +49,8 @@ read -r -p "This will delete the current partition table on $DISK. Do you agree
|
|||||||
response=${response,,}
|
response=${response,,}
|
||||||
if [[ "$response" =~ ^(yes|y)$ ]]
|
if [[ "$response" =~ ^(yes|y)$ ]]
|
||||||
then
|
then
|
||||||
wipefs -af $DISK &>/dev/null
|
wipefs -af "$DISK" &>/dev/null
|
||||||
sgdisk -Zo $DISK &>/dev/null
|
sgdisk -Zo "$DISK" &>/dev/null
|
||||||
else
|
else
|
||||||
echo "Quitting."
|
echo "Quitting."
|
||||||
exit
|
exit
|
||||||
@ -69,7 +69,7 @@ cryptroot="/dev/disk/by-partlabel/cryptroot"
|
|||||||
|
|
||||||
# Informing the Kernel of the changes.
|
# Informing the Kernel of the changes.
|
||||||
echo "Informing the Kernel about the disk changes."
|
echo "Informing the Kernel about the disk changes."
|
||||||
partprobe $DISK
|
partprobe "$DISK"
|
||||||
|
|
||||||
# Formatting the ESP as FAT32.
|
# Formatting the ESP as FAT32.
|
||||||
echo "Formatting the EFI Partition 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.
|
# Setting hostname.
|
||||||
read -r -p "Please enter the hostname: " hostname
|
read -r -p "Please enter the hostname: " hostname
|
||||||
echo $hostname > /mnt/etc/hostname
|
echo "$hostname" > /mnt/etc/hostname
|
||||||
|
|
||||||
# Setting up locales.
|
# Setting up locales.
|
||||||
read -r -p "Please insert the locale you use in this format (xx_XX): " locale
|
read -r -p "Please insert the locale you use in this format (xx_XX): " locale
|
||||||
|
Loading…
Reference in New Issue
Block a user