-
switch into root:
sudo su
-
list disks and partitions:
fdisk -l
-
find main list filesystem partition and efi partition
-
create mountpoint:
mkdir /mnt/arch
-
mount partition (additional argument needed for btrfs):
mount -t auto -o subvol=@ /dev/nvme0n1p6 /mnt/arch/
(source: https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/3) -
change root into mounted partition:
arch-chroot /mnt/arch
-
mount EFI partition:
mount -t auto /dev/nvme0n1p2 /efi/
-
update bootctl to restore 'Linux' item in EFI list:
bootctl update
-
reinstall kernels to add EndeavourOS to the Linux boot items:
reinstall-kernels
- While chrooted and with the EFI partition mounted:
efibootmgr --create --disk /dev/nvme0n1p7 --loader /EFI/systemd/systemd-bootx64.efi --label 'EndeavourOS' --unicode
- References: