From ec4d182e0f452d7c1ae8eb58538154075688c6c5 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Tue, 27 Aug 2024 15:14:53 -0700 Subject: [PATCH 1/3] Update _index.adoc FreeBSD 13.0+ no longer have boot1.efifat, so replace those instructions with the relevant commands and add reference to loader.efi man page. --- documentation/content/en/books/handbook/zfs/_index.adoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/documentation/content/en/books/handbook/zfs/_index.adoc b/documentation/content/en/books/handbook/zfs/_index.adoc index 22d4d8057206..c962fce0de19 100644 --- a/documentation/content/en/books/handbook/zfs/_index.adoc +++ b/documentation/content/en/books/handbook/zfs/_index.adoc @@ -1335,11 +1335,13 @@ For systems using EFI to boot, execute the following command: [source,shell] .... -# gpart bootcode -p /boot/boot1.efifat -i 1 ada1 +# mount_msdosfs /dev/ada1p1 /boot/efi +# cp /boot/loader.efi /boot/efi/efi/boot/bootx64.efi +# umount /boot/efi .... Apply the bootcode to all bootable disks in the pool. -See man:gpart[8] for more information. +See man:gpart[8] and man:loader.efi[8] for more information. ==== [[zfs-zpool-history]] From 83027d781463ce3038850c8e397b5b2c77221d87 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 19 Mar 2025 19:50:40 -0700 Subject: [PATCH 2/3] Update _index.adoc more robust instructions --- documentation/content/en/books/handbook/zfs/_index.adoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/documentation/content/en/books/handbook/zfs/_index.adoc b/documentation/content/en/books/handbook/zfs/_index.adoc index c962fce0de19..6edee0739da9 100644 --- a/documentation/content/en/books/handbook/zfs/_index.adoc +++ b/documentation/content/en/books/handbook/zfs/_index.adoc @@ -1331,12 +1331,14 @@ For legacy boot using GPT, use the following command: # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 .... -For systems using EFI to boot, execute the following command: +For systems using EFI to boot, execute the following commands: [source,shell] .... -# mount_msdosfs /dev/ada1p1 /boot/efi -# cp /boot/loader.efi /boot/efi/efi/boot/bootx64.efi +# umount /boot/efi +# mount -t msdosfs /dev/ada1p1 /boot/efi +# cp /boot/loader.efi /boot/efi/efi/boot/boot*.efi +# cp /boot/loader.efi /boot/efi/efi/freebsd/loader.efi # umount /boot/efi .... From 34b76ba4324b962ce1e1cf0431033d0921dd64b3 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 21 Mar 2025 17:08:28 -0700 Subject: [PATCH 3/3] rename ada1 -> ada0 in example --- documentation/content/en/books/handbook/zfs/_index.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/content/en/books/handbook/zfs/_index.adoc b/documentation/content/en/books/handbook/zfs/_index.adoc index 6edee0739da9..b82f39f266f3 100644 --- a/documentation/content/en/books/handbook/zfs/_index.adoc +++ b/documentation/content/en/books/handbook/zfs/_index.adoc @@ -1328,7 +1328,7 @@ For legacy boot using GPT, use the following command: [source,shell] .... -# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 +# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 .... For systems using EFI to boot, execute the following commands: @@ -1336,7 +1336,7 @@ For systems using EFI to boot, execute the following commands: [source,shell] .... # umount /boot/efi -# mount -t msdosfs /dev/ada1p1 /boot/efi +# mount -t msdosfs /dev/ada0p1 /boot/efi # cp /boot/loader.efi /boot/efi/efi/boot/boot*.efi # cp /boot/loader.efi /boot/efi/efi/freebsd/loader.efi # umount /boot/efi