Removed snapshot subvolume and changed naming.

This commit is contained in:
proledatarian 2022-11-25 22:06:14 +00:00
parent d5c2012ba6
commit 55c5de7eb9
1 changed files with 4 additions and 9 deletions

View File

@ -196,21 +196,16 @@ mkfs.btrfs /dev/mapper/main &&
mount /dev/mapper/main /mnt && mount /dev/mapper/main /mnt &&
# Stupid naming convention for Timeshift only: https://github.com/teejee2008/timeshift#supported-system-configurations btrfs subvolume create /mnt/root &&
btrfs subvolume create /mnt/home &&
btrfs subvolume create /mnt/@ &&
btrfs subvolume create /mnt/@home &&
btrfs subvolume create /mnt/@snapshots &&
umount /mnt && umount /mnt &&
echo echo
echo "Mounting.." && echo "Mounting.." &&
mount -o compress=zstd,subvol=@ /dev/mapper/main /mnt && mount -o compress=zstd,subvol=root /dev/mapper/main /mnt &&
mkdir /mnt/home && 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 &&
mount -o compress=zstd,subvol=@snapshots /dev/mapper/main /mnt/.snapshots &&
mkdir /mnt/boot && mkdir /mnt/boot &&
mount /dev/$boot /mnt/boot && mount /dev/$boot /mnt/boot &&
echo "Mounting complete." && echo "Mounting complete." &&