HomeFreeBSD

stand/loader.efi: fix regression with ignoring nvstore

Description

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)

Details

Provenance
glebiusAuthored on Sep 11 2023, 6:04 PM
impCommitted on Apr 16 2024, 2:32 AM
Reviewer
imp
Differential Revision
D41795: stand/loader.efi: fix regression with ignoring nvstore
Parents
rG72eb6d65ede2: sound: Move sndstat_prepare_pcm() to pcm/sndstat.c and remove sndstat_entry…
Branches
Unknown
Tags
Unknown