Update btrfs-test.sh
This commit is contained in:
parent
f75b57a9e2
commit
c67caa0157
|
@ -57,11 +57,11 @@ dev="${array[0]}"
|
||||||
szmn="${array[1]%?}"
|
szmn="${array[1]%?}"
|
||||||
|
|
||||||
# Setting partition size.
|
# Setting partition size.
|
||||||
echo "Your system partition has a size of $szmn GB."
|
#echo "Your system partition has a size of $szmn GB."
|
||||||
echo "What size should your root volume have (GB) ?"
|
#echo "What size should your root volume have (GB) ?"
|
||||||
echo "The rest will be used for your home volume."
|
#echo "The rest will be used for your home volume."
|
||||||
read szrt
|
#read szrt
|
||||||
echo
|
#echo
|
||||||
|
|
||||||
echo "2. ENCRYPTION"
|
echo "2. ENCRYPTION"
|
||||||
echo
|
echo
|
||||||
|
@ -194,8 +194,6 @@ echo
|
||||||
lsblk | grep "$dev"
|
lsblk | grep "$dev"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
exit
|
|
||||||
|
|
||||||
echo "Creating the filesystem."
|
echo "Creating the filesystem."
|
||||||
boot=${dev}1
|
boot=${dev}1
|
||||||
mkfs.fat -F 32 -n UEFI /dev/$boot &&
|
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 &&
|
mount -o compress=zstd,subvol=@home /dev/mapper/main /mnt/home &&
|
||||||
mkdir /mnt/.snapshots &&
|
mkdir /mnt/.snapshots &&
|
||||||
mount -o compress=zstd,subvol=@snapshots /dev/mapper/main /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 "Mounting complete." &&
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue