1.3 KiB
1.3 KiB
keywords | |
---|---|
|
Archlinux
clean system from old files
paccache -r
paccache -ruk0
paccache -rk1
yay -Ycc
flatpak uninstall --unused
journalctl --disk-usage && journalctl --vacuum-size={size}M
or prepare the file/etc/systemd/journald.conf
and this value:SystemMaxUse=50M
customize fresh system
- /etc/mkinitcpio.conf
- /boot/loader/entries/arch.conf https://wiki.archlinux.org/title/Kernel_parameters#systemd-boot
- unified kernel image https://wiki.archlinux.org/title/Unified_kernel_image
- kernel cmdline
- power state cpu
- WARNING: do not use the partuuid in the cmdline. check the uuid correctness with the LUKS container,
blkid
- root and resume are links to the mapper
- reboot the system to check if anything is broken
- add secureboot https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot#Implementing_Secure_Boot
git use credential store
https://gist.github.com/maelvls/79d49740ce9208c26d6a1b10b0d95b5e
failure recovery
- boot from archlinux usb stick
- mount LUKS Container
cryptsetup luksOpen /dev/nvme0n1pX luksDev
- temporary dir
mkdir tmpmnt
- mount
mount -o subvol=@ /dev/mapper/luksDev tmp
arch-chroot tmp bash
mount /dev/nmve0n1p1 /boot
- fix stuff
mkinicpio -p linux
- sync, unmount boot and tmp
cryptsetup luksClose luksdev