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" part_root="/dev/disk/by-partlabel/arch"
fi fi
# Wait for Partitions
sleep 2
if [ $encryption -eq 1 ]; then if [ $encryption -eq 1 ]; then
echo "Creating Encrypted Root Partition" echo "Creating Encrypted Root Partition"
cryptsetup luksFormat --type luks1 --cipher aes-xts-plain64 --hash sha512 --key-size 512 "${part_root}" 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" echo "Creating BRTFS Subvolumes"
mount "${root_dev}" /mnt 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}" btrfs su cr "/mnt/${sv}"
done done