Since we are not attempting a full reinstall, we'll reuse the already exiting volumes and partitions.
Partitions of interest are:
- /dev/sdb3 @ /efi - fat32 - efi partition
- /dev/sdb4 - LUKS 2 partition - contains LVM virtual volume: vg1
- /dev/mapper/vg1-root @ / - ext4 on LVM
- /dev/mapper/vg1-swap - swap
Setup the good keyboard layout:
loadkeys frcryptsetup luksOpen /dev/sdb4 cryptoroot
mount /dev/mapper/vg1-root /mnt
mount --mkdir /dev/sdb3 /mnt/efi
swapon /dev/mapper/vg1-swapreflector --latest 5 --protocol https -c fr,de,nl --age 12 --sort rate --save /etc/pacman.d/mirrorlistpacstrap -K /mnt base linux linux-firmware intel-ucode lvm2 nano man dracut systemd-ukify efibootmgr networkmanager ghostty firefoxgenfstab -U /mnt >> /mnt/etc/fstabarch-chroot -S /mntln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohclocale-gen
nano /etc/locale.conf # Set the correct local (LANG=en_US.UTF-8)
nano /etc/vconsole.conf # Set correct keyboard layout (KEYMAP=fr)nanp /etc/hostnameFirst, setup the root password
passwdThen create the needed account:
useradd -m -s /bin/bash username
passwd username
EDITOR=nano visudo
usermod -aG wheel usernameYay install:
su - fusetim # we cannot be root for this part
cd /tmp
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
exityay -Sy nvidia-580xx-dkms linux-headers
TODO: Install dracut-ukify later
Create this dracut conf file: /etc/dracut.conf.d/uki.conf
uefi=yes
uefi_stub=/usr/lib/systemd/boot/efi/linuxx64.efi.stub
compress=zstd
hostonly=yes
Create this dracut conf file: /etc/dracut.conf.d/cmdline.conf
kernel_cmdline="rd.luks rd.luks.name=3c48455a-ada3-4c14-aedd-04388a362bb6=cryptoroot rd.dm=0 rd.md=0 rd.lvm rd.lvm.vg=vg1 root=/dev/vg1/root resume=/dev/vg1/swap rw rootfstype=ext4"
Generate the bootimage:
dracut --regenerate-all --uefi -fbootctl --esp-path=/efi installsystemctl enable NetworkManagerInstall KDE plasma and Plasma Login Manager
sudo pacman -S plasma-meta plasma-login-manager
systemctl enable plasmalogin