- luks veschlüsselt
- btrfs Dateisystem
- swap Partition
- Hibernation
- zsh
Installationsmedium erstellen (dd, ventoy, balenaEtcher, ...)
EFI-Systempartition: 512 MiB Swap-Partition: >= RAM für Hibernation Root: Rest der Festplatte
cfdisk # [Type] Flags EFI, Linux swap, Linux Filesystem
mkfs.vfat /dev/sdaE # boot/efi
mkswap /dev/sdaY # Swap-Partition
swapon /dev/sdaY
cryptsetup luksFormat /dev/sdaX # Root-Partition, 'YES' in Großbuchstaben
cryptsetup open /dev/sdaX cryptroot
mkfs.btrfs /dev/mapper/cryptroot
mount /dev/mapper/cryptroot /mnt
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home
btrfs subvolume create /mnt/@snapshots
umount /mnt
mount -o subvol=@,compress=zstd,noatime /dev/mapper/cryptroot /mnt
mkdir -p /mnt/{boot/efi,home,.snapshots}
mount /dev/sdaE /mnt/boot/efi
mount -o subvol=@home,compress=zstd,noatime /dev/mapper/cryptroot /mnt/home
mount -o subvol=@snapshots,compress=zstd,noatime /dev/mapper/cryptroot /mnt/.snapshots
pacstrap /mnt base linux linux-firmware btrfs-progs
Generiere fstab, chroot, setze Zeitzone, Lokalisierung, Netzwerk und Passwort.
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
pacman -S grub efibootmgr vi
vi /etc/default/grub # uncomment GRUB_ENABLE_CRYPTODISK=y
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
# Füge GRUB_CMDLINE_LINUX="cryptdevice=UUID=deine-root-partition-uuid:cryptroot root=/dev/mapper/cryptroot resume=/dev/sdaY" zu /etc/default/grub hinzu
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S zsh sway swaylock swayidle waybar wofi alacritty greetd
chsh -s /usr/bin/zsh
Swap-Partition in der GRUB_CMDLINE_LINUX erwähnen und mkinitcpio.conf anpassen, um resume zu HOOKS hinzuzufügen, dann generiere mkinitcpio neu.
mkinitcpio -p linux