Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Oct 2020 03:36:32 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r367195 - head
Message-ID:  <202010310336.09V3aWSl060298@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Sat Oct 31 03:36:31 2020
New Revision: 367195
URL: https://svnweb.freebsd.org/changeset/base/367195

Log:
  Attempt to defuse a land mine before anyone else steps on it: The
  freebsd-boot partition is not always the first one.
  
  Following the instructions in UPDATING resulted in my overwriting
  the efiboot0 partition on my laptop with ZFS boot blocks, which
  had negative effects on the system's bootability.
  
  Reviewed by:	allanjude
  Differential Revision:	https://reviews.freebsd.org/D27002

Modified:
  head/UPDATING

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Sat Oct 31 02:57:53 2020	(r367194)
+++ head/UPDATING	Sat Oct 31 03:36:31 2020	(r367195)
@@ -2203,9 +2203,11 @@ COMMON ITEMS:
 
 	2.) update the ZFS boot block on your boot drive
 
-	The following example updates the ZFS boot block on the first
-	partition (freebsd-boot) of a GPT partitioned drive ada0:
-	"gpart bootcode -p /boot/gptzfsboot -i 1 ada0"
+	The following example updates the ZFS boot block on the
+	freebsd-boot partition of a GPT partitioned drive ada0:
+	"gpart bootcode -p /boot/gptzfsboot -i $N ada0"
+	The value $N will typically be 1 (if booting from BIOS) or 2 (if
+	booting from EFI).
 
 	Non-boot pools do not need these updates.
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010310336.09V3aWSl060298>