Update btrfs-test.sh

This commit is contained in:
proledatarian 2022-03-30 17:07:45 +00:00
parent f75b57a9e2
commit c67caa0157
1 changed files with 7 additions and 8 deletions

View File

@ -57,11 +57,11 @@ dev="${array[0]}"
szmn="${array[1]%?}"
# Setting partition size.
echo "Your system partition has a size of $szmn GB."
echo "What size should your root volume have (GB) ?"
echo "The rest will be used for your home volume."
read szrt
echo
#echo "Your system partition has a size of $szmn GB."
#echo "What size should your root volume have (GB) ?"
#echo "The rest will be used for your home volume."
#read szrt
#echo
echo "2. ENCRYPTION"
echo
@ -194,8 +194,6 @@ echo
lsblk | grep "$dev"
echo
exit
echo "Creating the filesystem."
boot=${dev}1
mkfs.fat -F 32 -n UEFI /dev/$boot &&
@ -219,7 +217,8 @@ mkdir /mnt/home &&
mount -o compress=zstd,subvol=@home /dev/mapper/main /mnt/home &&
mkdir /mnt/.snapshots &&
mount -o compress=zstd,subvol=@snapshots /dev/mapper/main /mnt/.snapshots &&
mount /dev/sda2 /mnt/boot &&
mkdir /mnt/boot &&
mount /dev/$boot /mnt/boot &&
echo "Mounting complete." &&
echo