From 5cee79f13fcd558e0fd58e102f59bd3e3093904b Mon Sep 17 00:00:00 2001 From: Peter Grandstaff Date: Tue, 26 Dec 2023 14:29:45 -0500 Subject: [PATCH] Use recursive binding before chroot 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. --- content/pop-recovery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/pop-recovery.md b/content/pop-recovery.md index 2df6394dd2..2415c4a900 100644 --- a/content/pop-recovery.md +++ b/content/pop-recovery.md @@ -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 ```