Skip to content

Commit

Permalink
Use recursive binding before chroot
Browse files Browse the repository at this point in the history
By using -R instead of -B, we ensure that the nested mount of /sys/firmware/efi/efivars/ becomes mounted in our target filesystem, which allows us to do various boot repairs with an EFI system.
  • Loading branch information
PeterGrand authored Dec 26, 2023
1 parent 3320067 commit e49ba98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/pop-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The EFI partition is the next partition to be mounted. To help identify it, this
| ```sudo mount /dev/sda1 /mnt/boot/efi``` | ```sudo mount /dev/nvme0n1p1 /mnt/boot/efi``` |

```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
```

Expand Down

0 comments on commit e49ba98

Please sign in to comment.