From b6a229293b81c2bff2aff6a651033993107a9ee7 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Wed, 17 Apr 2024 15:29:31 +0100 Subject: Add tmp & var btrfs sub-volumes --- install-artix.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install-artix.sh b/install-artix.sh index 527577e..2b4bc81 100755 --- a/install-artix.sh +++ b/install-artix.sh @@ -186,15 +186,19 @@ mount "${root}" /mnt btrfs -q subvolume create /mnt/@ btrfs -q subvolume create /mnt/@home btrfs -q subvolume create /mnt/@snapshots +btrfs -q subvolume create /mnt/@tmp +btrfs -q subvolume create /mnt/@var # Mount BTRFS subvolumes umount /mnt options="noatime,space_cache=v2,compress=zstd,ssd,discard=async" mount -o "${options},subvol=@" "${root}" /mnt -mkdir /mnt/{boot,home,.snapshots} +mkdir /mnt/{boot,home,.snapshots,tmp,var} mount -o "${options},subvol=@home" "${root}" /mnt/home -mount -o "${options},subvol=@snapshots" "${root}" /mnt/.snapshots -chmod 750 /mnt/.snapshots +mount -o "${options},subvol=@snapshots" "${root}" /mnt/.snapshots \ + && chmod 750 /mnt/.snapshots +mount -o "${options},subvol=@tmp" "${root}" /mnt/tmp +mount -o "${options},subvol=@var" "${root}" /mnt/var # Mount boot partition. mount "${boot}" /mnt/boot -- cgit