Update chroot.sh

This commit is contained in:
Ste Vaidis 2025-02-25 11:10:55 +02:00
parent ca83948b2d
commit 4a9b2ca911

View File

@ -1,5 +1,15 @@
#!/bin/bash
# BIOS
#
# Disable Secure Boot (if applicable)
# EFI
#
# sudo efibootmgr -v
# sudo efibootmgr -o XXXX,YYYY # adjust order
sudo lsblk -f
sudo mount /dev/nvme0n1p5 /mnt
@ -13,8 +23,18 @@ sudo mount --bind /run /mnt/run
sudo chroot /mnt
# sudo fsck.fat -a /dev/nvme0n1p1
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
# update-grub
# Restore GRUB backup
#
# sudo mkdir -p /mnt/efi/EFI/Boot
# sudo cp /mnt/efi/EFI/GRUB/grubx64.efi /mnt/efi/EFI/Boot/bootx64.efi
# exit
# sudo umount /mnt/dev /mnt/proc /mnt/sys /mnt/run /mnt/boot/efi /mnt