Proper compression.

This commit is contained in:
Tommaso Chiti 2021-12-08 14:57:59 +01:00
parent 52d67aabb4
commit 941d7cf1ae

View file

@ -211,18 +211,18 @@ mount $BTRFS /mnt
print "Creating BTRFS subvolumes." print "Creating BTRFS subvolumes."
for volume in @ @home @snapshots @var_log @var_pkgs for volume in @ @home @snapshots @var_log @var_pkgs
do do
btrfs su cr /mnt/$volume &>/dev/null btrfs su cr /mnt/$volume
done done
# Mounting the newly created subvolumes. # Mounting the newly created subvolumes.
umount /mnt umount /mnt
print "Mounting the newly created subvolumes." print "Mounting the newly created subvolumes."
mount -o ssd,noatime,space_cache=v2,compress-force=zstd:15,discard=async,subvol=@ $BTRFS /mnt mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@ $BTRFS /mnt
mkdir -p /mnt/{home,.snapshots,/var/log,/var/cache/pacman/pkg,boot} mkdir -p /mnt/{home,.snapshots,/var/log,/var/cache/pacman/pkg,boot}
mount -o ssd,noatime,space_cache=v2,compress-force=zstd:15,discard=async,subvol=@home $BTRFS /mnt/home mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@home $BTRFS /mnt/home
mount -o ssd,noatime,space_cache=v2,compress-force=zstd:15,discard=async,subvol=@snapshots $BTRFS /mnt/.snapshots mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@snapshots $BTRFS /mnt/.snapshots
mount -o ssd,noatime,space_cache=v2,compress-force=zstd:15,discard=async,subvol=@var_log $BTRFS /mnt/var/log mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@var_log $BTRFS /mnt/var/log
mount -o ssd,noatime,space_cache=v2,compress-force=zstd:15,discard=async,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg
chattr +C /mnt/var/log chattr +C /mnt/var/log
mount $ESP /mnt/boot/ mount $ESP /mnt/boot/