first steps

This commit is contained in:
2026-08-18 20:47:11 +07:00
parent 0f21f1a5be
commit 53641918a9
6 changed files with 72 additions and 0 deletions

15
2.1.fs-mount.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
source .env
cd /
mount -o defaults,noatime,compress=zstd,ssd,space_cache=v2,autodefrag,subvol=@ /dev/mapper/cryptroot /mnt
mount -o defaults,noatime,compress=zstd,ssd,space_cache=v2,autodefrag,subvol=@home /dev/mapper/cryptroot /mnt/home
mount -o defaults,noatime,compress=zstd,space_cache=v2,subvol=@snapshots /dev/mapper/cryptroot /mnt/snapshots
mount -o defaults,noatime,space_cache=v2,subvol=@var /dev/mapper/cryptroot /mnt/var
mount -o defaults,noatime,space_cache=v2,nodatacow,subvol=@var_log /dev/mapper/cryptroot /mnt/var/log
mount -o defaults,noatime,space_cache=v2,nodatacow,subvol=@var_cache /dev/mapper/cryptroot /mnt/var/cache
mount -o fmask=0077,dmask=0077 /dev/${_SYS_DEV}1 /mnt/boot
mkswap /dev/${_SYS_DEV}2
swapon /dev/${_SYS_DEV}2