Skip to content

Commit

Permalink
Do not check if artifact is already installed
Browse files Browse the repository at this point in the history
The Mender Client used to check if the downloaded artifact was already
installed in the past. However, this check was removed in
[mendersoftware/mender@1fb6223](mendersoftware/mender@1fb6223)
as it prevents the use of the "Force update" option, allowing a device
to take part in the same deployment twice. Today, all the
"already-installed" logic is performed in the backend.

Signed-off-by: Lars Erik Wik <[email protected]>
  • Loading branch information
larsewi authored and joelguittet committed Aug 26, 2024
1 parent 2e5c12d commit 90261db
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/src/mender-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,13 +897,6 @@ mender_client_update_work_function(void) {
goto END;
}

/* Check if artifact is already installed (should not occur) */
if (!strcmp(artifact_name, mender_client_config.artifact_name)) {
mender_log_error("Artifact is already installed");
mender_client_publish_deployment_status(id, MENDER_DEPLOYMENT_STATUS_ALREADY_INSTALLED);
goto END;
}

/* Reset flags */
mender_client_deployment_needs_set_pending_image = false;
mender_client_deployment_needs_restart = false;
Expand Down

0 comments on commit 90261db

Please sign in to comment.