]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When be_activate() turns on a new boot environment, it always deactivates
authorGleb Smirnoff <glebius@FreeBSD.org>
Fri, 8 Jan 2021 17:23:16 +0000 (09:23 -0800)
committerGleb Smirnoff <glebius@FreeBSD.org>
Fri, 8 Jan 2021 17:23:16 +0000 (09:23 -0800)
commit7edc1bd9dc174526c69246ba45bf2c8c230d38f4
treebea1d43f011d096831c197e1036774d6cfad515a
parent14a16fd3e7eced5b63ffd85fdac4334e30012e84
When be_activate() turns on a new boot environment, it always deactivates
the current one first. And if it fails to do so, it abandons activation.
However, with the new bootonce feature, there is a legitimate case when
a pool doesn't have "bootfs" property set. Check for this case before
calling be_deactivate().

Reviewed by: kevans
lib/libbe/be.c