summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-04-17 15:29:31 +0100
committerBlake Romero <blake@blkrom.com>2024-04-17 15:29:31 +0100
commitb6a229293b81c2bff2aff6a651033993107a9ee7 (patch)
tree61f561a880739d88fbd3c2f49605c7cc7135a9f2
parent713bb70b541eb8a316b36fb2a6da1ba420d15a3e (diff)
Add tmp & var btrfs sub-volumes
-rwxr-xr-xinstall-artix.sh10
1 files 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