>>106850630
- mkfs.fat -F32 /dev/nvme0n1p1
- cryptsetup luksFormat /dev/nvme0n1p2
- cryptsetup open /dev/nvme0n1p2 cryptroot
- mkfs.btrfs /dev/mapper/cryptroot
- mount /dev/mapper/cryptroot /mnt
- cd /mnt
- btrfs subvolume create @
- btrfs subvolume create @home
- btrfs subvolume create @var_log
- btrfs subvolume create @var_cache
- cd /
- umount /mnt
- mount -o noatime,compress=zstd,space_cache=v2,subvol=@ /dev/mapper/cryptroot /mnt
- mkdir -p /mnt/{boot,home,var/log,var/cache}
- mount -o noatime,compress=zstd,space_cache=v2,subvol=@home /dev/mapper/cryptroot /mnt/home
- mount -o noatime,compress=zstd,space_cache=v2,subvol=@var_log /dev/mapper/cryptroot /mnt/var/log
- mount -o noatime,compress=zstd,space_cache=v2,subvol=@var_cache /dev/mapper/cryptroot /mnt/var/cache
- mount /dev/nvme0n1p1 /mnt/boot
>>106850686
Icecat