This guide provides a step-by-step process for installing Gentoo Linux using a modern systemd profile and a Unified Kernel Image (UKI) with systemd-boot.
# Unmount all partitions if mounted, suppressing errors
umount /dev/vda1 2>/dev/null
umount /dev/vda2 2>/dev/null