Correct snapshot vs snapshots

This commit is contained in:
seiichiro 2021-09-17 16:23:48 +02:00
parent 02f636c117
commit 0ae15f94ec

View file

@ -122,6 +122,9 @@ else
part_root="/dev/disk/by-partlabel/arch"
fi
# Wait for Partitions
sleep 2
if [ $encryption -eq 1 ]; then
echo "Creating Encrypted Root Partition"
cryptsetup luksFormat --type luks1 --cipher aes-xts-plain64 --hash sha512 --key-size 512 "${part_root}"
@ -136,7 +139,7 @@ mkfs.btrfs -L archlinux "${root_dev}"
echo "Creating BRTFS Subvolumes"
mount "${root_dev}" /mnt
for sv in "@" "@home" "@data" "@snapshot" "@log" "@pkg" "@machines" "@portables"; do
for sv in "@" "@home" "@data" "@snapshots" "@log" "@pkg" "@machines" "@portables"; do
btrfs su cr "/mnt/${sv}"
done