only the variable mender_boot_part is used to determine the active partition. During an update that is then inverted to determine what the new root candidate partition is.
That candidate is then mounted, and the new/candidate kernel copied into the corresponding kernel partition (via meta-mender-kernel state scripts).
After an update, mender_boot_part is modified. If you do another update (before rebooting, so essentially overwriting the update with another before it takes effect), this logic is wrong. You'll copy the kernel from the active/current partition.
This logic should include upgrade_available, and not invert mender_boot_part if an update is already in process.
only the variable
mender_boot_part
is used to determine the active partition. During an update that is then inverted to determine what the new root candidate partition is.That candidate is then mounted, and the new/candidate kernel copied into the corresponding kernel partition (via
meta-mender-kernel
state scripts).After an update,
mender_boot_part
is modified. If you do another update (before rebooting, so essentially overwriting the update with another before it takes effect), this logic is wrong. You'll copy the kernel from the active/current partition.This logic should include
upgrade_available
, and not invertmender_boot_part
if an update is already in process.