]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
FreeBSD boot code reminder after zpool upgrade
authorgrembo <freebsd@grem.de>
Tue, 1 Jun 2021 21:03:49 +0000 (23:03 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Jun 2021 20:05:34 +0000 (13:05 -0700)
commit1fb18c4bdea7442cb94320ee293fea8d3e08a706
treec7e5f23f64b6e58fb2203714ec7936dccd450197
parenta0c055cfd3a25c37ce95f8febfab9c567db339bb
FreeBSD boot code reminder after zpool upgrade

There used to be a warning after upgrading a zpool in FreeBSD, so users
won't forget to update the boot loader that pool is booted from.

This change brings this warning back, but only if the bootfs property
is set on the pool, which should be sufficient for the vast majority of
FreeBSD installations. People running something custom are most likely
aware of what to do after an upgrade in their specific environment.

Functionality is implemented in an OS specific helper function.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Co-authored-by: Michael Gmelin <grembo@FreeBSD.org>
Signed-off-by: Michael Gmelin <grembo@FreeBSD.org>
Closes #12099
Closes #12104
cmd/zpool/os/freebsd/zpool_vdev_os.c
cmd/zpool/os/linux/zpool_vdev_os.c
cmd/zpool/zpool_main.c
cmd/zpool/zpool_util.h