diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2023-09-11 18:04:48 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-04-16 02:32:03 +0000 |
| commit | ebdd5d72fffcc92e1f046a7c5d9855b9566231e3 (patch) | |
| tree | 79f3558248b8b94c6ceb806796c9557b76f50795 | |
| parent | 72eb6d65ede22a235886bfa610217a33247f3de8 (diff) | |
stand/loader.efi: fix regression with ignoring nvstore
To read/update the boot loader nvstore, we always need to call
zfs_attach_nvstore() regardless of whether we use bootonce key
in nvstore or the bootfs property of the pool. The call was
unintentionally left in the block of code that is processed
only when bootonce key is present.
In particular this fixes broken 'nextboot -k'.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D41795
Fixes: e3e2681d0ec28d6661fef6da76c9479049e2761c
(cherry picked from commit d13550f0c9c283e6bf7a2a3ec870f92a882c9f21)
| -rw-r--r-- | stand/efi/loader/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 123410f83aa0..ca39c242afc3 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -264,8 +264,8 @@ probe_zfs_currdev(uint64_t guid) printf("zfs bootonce: %s\n", buf); set_currdev(buf); setenv("zfs-bootonce", buf, 1); - (void)zfs_attach_nvstore(&currdev); } + (void)zfs_attach_nvstore(&currdev); return (sanity_check_currdev()); } |
