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 <cyfdecyf@gmail.com>

Fixes #9490
Richard Laager 2019-12-14 18:49:53 -06:00
parent eb22d2c3bb
commit be7eda21e3
3 changed files with 3 additions and 3 deletions

@ -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 \ dd if=/dev/disk/by-id/scsi-SATA_disk1-part2 \
of=/dev/disk/by-id/scsi-SATA_disk2-part2 of=/dev/disk/by-id/scsi-SATA_disk2-part2
efibootmgr -c -g -d /dev/disk/by-id/scsi-SATA_disk2 \ 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 mount /boot/efi

@ -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 \ # dd if=/dev/disk/by-id/scsi-SATA_disk1-part2 \
of=/dev/disk/by-id/scsi-SATA_disk2-part2 of=/dev/disk/by-id/scsi-SATA_disk2-part2
# efibootmgr -c -g -d /dev/disk/by-id/scsi-SATA_disk2 \ # 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 # mount /boot/efi

@ -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 \ dd if=/dev/disk/by-id/scsi-SATA_disk1-part2 \
of=/dev/disk/by-id/scsi-SATA_disk2-part2 of=/dev/disk/by-id/scsi-SATA_disk2-part2
efibootmgr -c -g -d /dev/disk/by-id/scsi-SATA_disk2 \ 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 mount /boot/efi