Skip to content

Commit

Permalink
bootloader: Make bind mounts recursive for EFI vars support
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgkau committed Aug 20, 2024
1 parent 64b66d3 commit 5053246
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/bootloader.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ First, we need to mount the OS partitions. Run these commands based on what type
Then continue with the following commands for either disk type:

```bash
for i in dev dev/pts proc sys run; do sudo mount -B /$i /mnt/$i; done
for i in dev dev/pts proc sys run; do sudo mount -R /$i /mnt/$i; done
sudo chroot /mnt
apt install --reinstall linux-image-generic linux-headers-generic
update-initramfs -c -k all
Expand Down Expand Up @@ -180,7 +180,7 @@ If you are using a non-default partitioning scheme (such as a dual boot), replac
Then continue with the following commands for either disk type:

```bash
for i in dev dev/pts proc sys run; do sudo mount -B /$i /mnt/$i; done
for i in dev dev/pts proc sys run; do sudo mount -R /$i /mnt/$i; done
sudo chroot /mnt
apt install --reinstall linux-image-generic linux-headers-generic
update-initramfs -c -k all
Expand Down Expand Up @@ -224,7 +224,7 @@ Then continue with the following commands for either disk type:
After the partitions are mounted, we'll ensure the internet settings from the OS are coped over, as well as reinstall the kernel and the bootloader.

```bash
for i in dev dev/pts proc sys run; do sudo mount -B /$i /mnt/$i; done
for i in dev dev/pts proc sys run; do sudo mount -R /$i /mnt/$i; done
sudo chroot /mnt
apt install --reinstall grub-efi-amd64 linux-generic linux-headers-generic
update-initramfs -c -k all
Expand Down Expand Up @@ -267,7 +267,7 @@ Then continue with the following commands for either disk type:
After the partitions are mounted, we'll ensure the internet settings from the OS are coped over, as well as reinstall the kernel and the bootloader.

```bash
for i in dev dev/pts proc sys run; do sudo mount -B /$i /mnt/$i; done
for i in dev dev/pts proc sys run; do sudo mount -R /$i /mnt/$i; done
sudo chroot /mnt
apt install --reinstall grub-efi-amd64 linux-generic linux-headers-generic
update-initramfs -c -k all
Expand Down

0 comments on commit 5053246

Please sign in to comment.