mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Proper compression.
This commit is contained in:
parent
52d67aabb4
commit
941d7cf1ae
1 changed files with 6 additions and 6 deletions
12
easy-arch.sh
12
easy-arch.sh
|
|
@ -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/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue