Skip to content

Commit

Permalink
prepare-root: If composefs is configured as "maybe" don't fail
Browse files Browse the repository at this point in the history
If composefs is configured as "maybe", we should continue even if
composefs support is not built in.
  • Loading branch information
ericcurtin committed Aug 24, 2023
1 parent fb06d59 commit d2d1602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion composefs
Submodule composefs deleted from 1aed87
4 changes: 3 additions & 1 deletion src/switchroot/ostree-prepare-root.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ main (int argc, char *argv[])
}
}
#else
errx (EXIT_FAILURE, "composefs: enabled at runtime, but support is not compiled in");
/* if composefs is configured as "maybe", we should continue */
if (composefs_config->enabled == OT_TRISTATE_YES)
errx (EXIT_FAILURE, "composefs: enabled at runtime, but support is not compiled in");
#endif
}

Expand Down

0 comments on commit d2d1602

Please sign in to comment.