Skip to content

Commit 34f8850

Browse files
nvlsianpurlubos
authored andcommitted
[nrf fromlist] mcumgr/img_mgmt: Allow erase pending image by default
Allows erasing secondary slot which is marked for test or confirmed. This is safe as bootloader doesn't make any action on boot-setup yet. Erase of such pending image might considered like the case when it was never downloaded as well. This allow user to not stuck with pending irremovable image. Signed-off-by: Andrzej Puzdrowski <[email protected]> Upstream PR #: 87042
1 parent 5319cfc commit 34f8850

File tree

1 file changed

+1
-0
lines changed
  • subsys/mgmt/mcumgr/grp/img_mgmt

1 file changed

+1
-0
lines changed

subsys/mgmt/mcumgr/grp/img_mgmt/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ config MCUMGR_GRP_IMG_ALLOW_CONFIRM_NON_ACTIVE_IMAGE_ANY
8585
if !MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP
8686
config MCUMGR_GRP_IMG_ALLOW_ERASE_PENDING
8787
bool "Allow to erase pending slot"
88+
default y
8889
help
8990
Allows erasing secondary slot which is marked for test or confirmed; this allows
9091
erasing slots that have been set for next boot but the device has not

0 commit comments

Comments
 (0)