From be7eda21e31a451d10eff0e98571ea92ddfc98f2 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sat, 14 Dec 2019 18:49:53 -0600 Subject: [PATCH] Debian/Ubuntu: Fix efibootmgr The -p argument to efibootmgr specifies the partition number. I failed to update this from 3 to 2 when I changed the partition layout. Reported-by: Chen Yufei Fixes #9490 --- Debian-Buster-Root-on-ZFS.md | 2 +- Debian-Stretch-Root-on-ZFS.md | 2 +- Ubuntu-18.04-Root-on-ZFS.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Debian-Buster-Root-on-ZFS.md b/Debian-Buster-Root-on-ZFS.md index 57797a6..407c774 100644 --- a/Debian-Buster-Root-on-ZFS.md +++ b/Debian-Buster-Root-on-ZFS.md @@ -570,7 +570,7 @@ For the second and subsequent disks (increment debian-2 to -3, etc.): dd if=/dev/disk/by-id/scsi-SATA_disk1-part2 \ of=/dev/disk/by-id/scsi-SATA_disk2-part2 efibootmgr -c -g -d /dev/disk/by-id/scsi-SATA_disk2 \ - -p 3 -L "debian-2" -l '\EFI\debian\grubx64.efi' + -p 2 -L "debian-2" -l '\EFI\debian\grubx64.efi' mount /boot/efi diff --git a/Debian-Stretch-Root-on-ZFS.md b/Debian-Stretch-Root-on-ZFS.md index 83b16c3..259cfbb 100644 --- a/Debian-Stretch-Root-on-ZFS.md +++ b/Debian-Stretch-Root-on-ZFS.md @@ -539,7 +539,7 @@ If you installed to multiple disks, install GRUB on the additional disks: # dd if=/dev/disk/by-id/scsi-SATA_disk1-part2 \ of=/dev/disk/by-id/scsi-SATA_disk2-part2 # efibootmgr -c -g -d /dev/disk/by-id/scsi-SATA_disk2 \ - -p 3 -L "debian-2" -l '\EFI\debian\grubx64.efi' + -p 2 -L "debian-2" -l '\EFI\debian\grubx64.efi' # mount /boot/efi diff --git a/Ubuntu-18.04-Root-on-ZFS.md b/Ubuntu-18.04-Root-on-ZFS.md index 7a5a765..c7f42db 100644 --- a/Ubuntu-18.04-Root-on-ZFS.md +++ b/Ubuntu-18.04-Root-on-ZFS.md @@ -549,7 +549,7 @@ For the second and subsequent disks (increment ubuntu-2 to -3, etc.): dd if=/dev/disk/by-id/scsi-SATA_disk1-part2 \ of=/dev/disk/by-id/scsi-SATA_disk2-part2 efibootmgr -c -g -d /dev/disk/by-id/scsi-SATA_disk2 \ - -p 3 -L "ubuntu-2" -l '\EFI\ubuntu\grubx64.efi' + -p 2 -L "ubuntu-2" -l '\EFI\ubuntu\grubx64.efi' mount /boot/efi