Skip to content

Commit

Permalink
ostree-sysroot-deploy: check if deployments are in the same stateroot.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrero committed May 1, 2024
1 parent c8c436e commit 477940f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libostree/ostree-sysroot-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2383,6 +2383,12 @@ deployment_bootconfigs_equal (OstreeRepo *repo, OstreeDeployment *a, OstreeDeplo
if (g_strcmp0 (a_version, b_version) != 0)
return FALSE;

/* same stateroot? */
const char *a_stateroot = ostree_deployment_get_osname (a);
const char *b_stateroot = ostree_deployment_get_osname (b);
if (g_strcmp0 (a_stateroot, b_stateroot) != 0)
return FALSE;

return TRUE;
}

Expand Down

0 comments on commit 477940f

Please sign in to comment.