From d23a2a081683858fbc9fafc163b60bbd8c9ede13 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Fri, 17 Aug 2018 14:28:33 +0300 Subject: [PATCH] 9753 installgrub: hard coded partition 0 with GPT Reviewed by: Igor Kozhukhov Reviewed by: Andrew Stormont Reviewed by: Yuri Pankov Approved by: Dan McDonald --- usr/src/cmd/boot/installgrub/installgrub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/cmd/boot/installgrub/installgrub.c b/usr/src/cmd/boot/installgrub/installgrub.c index 9d95b37274..09c03fd1f4 100644 --- a/usr/src/cmd/boot/installgrub/installgrub.c +++ b/usr/src/cmd/boot/installgrub/installgrub.c @@ -741,8 +741,8 @@ get_start_sector(ig_device_t *device) device->start_sector = vtoc->efi_parts[device->slice].p_start; /* GPT doesn't use traditional slice letters */ + device->partition = device->slice; device->slice = 0xff; - device->partition = 0; efi_free(vtoc); goto found_part; -- 2.11.4.GIT