Last active
December 31, 2021 03:41
-
-
Save codeliger/2ff4959113f7021cfaeda87b5e9e0e82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ensure you are booted into UEFI mode through the motherboards boot menu | |
# test if efi mode in bash: | |
# [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS | |
# list devices | |
lsblk -f | |
# decrypt the encrypted disk/volume | |
sudo cryptsetup luksOpen /dev/nvme0n1p2 archliger | |
# mount the kernel volume | |
sudo mount /dev/mapper/archliger /mnt | |
# mount the efi partition | |
sudo mount /dev/nvme0n1p1 /mnt/boot | |
# mount some random shit | |
sudo mount -t proc proc /mnt/proc | |
sudo mount -t sysfs sys /mnt/sys | |
sudo mount -o bind /dev /mnt/dev | |
sudo mount -t devpts pts /mnt/dev/pts/ | |
# check if efivarfs is loaded without errors | |
efivar -l | |
# add efivarfs to linux kernel | |
modprobe efivarfs | |
# mount outside of chroot | |
sudo mount -t efivarfs efivarfs /sys/firmware/efi/efivars | |
sudo chroot /mnt | |
# mount inside of chroot | |
sudo mount -t efivarfs efivarfs /sys/firmware/efi/efivars | |
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro_grub --recheck | |
update-grub | |
# https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#Requirements_for_UEFI_variable_support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment