1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-09 20:21:34 -05:00

Update easy-arch.sh

This commit is contained in:
Tommaso Chiti 2021-01-31 14:29:33 +01:00 committed by GitHub
parent 6102ed9395
commit 20c5cac7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,8 @@ done
# Deleting old partition scheme. # Deleting old partition scheme.
read -r -p "This will delete the current partition table on $DISK. Do you agree [y/N]? " response read -r -p "This will delete the current partition table on $DISK. Do you agree [y/N]? " response
response=${response,,} response=${response,,}
then
if [[ "$response" =~ ^(yes|y)$ ]] if [[ "$response" =~ ^(yes|y)$ ]]
then
wipefs -af $DISK wipefs -af $DISK
sgdisk -Zo $DISK sgdisk -Zo $DISK
else else
@ -71,4 +71,4 @@ mount -o compress=zstd,subvol=@snapshots $BTRFS /mnt/.snapshots
mount -o nodatacow,subvol=@var_log $BTRFS /mnt/var/log mount -o nodatacow,subvol=@var_log $BTRFS /mnt/var/log
mount -o nodatacow,subvol=@swap $BTRFS /mnt/swap mount -o nodatacow,subvol=@swap $BTRFS /mnt/swap
mount $ESP /mnt/boot mount $ESP /mnt/boot
echo "Done." echo "Done."