Fix return value of generator on non-ostree systems
authorColin Walters <walters@verbum.org>
Wed, 28 Jun 2023 15:45:15 +0000 (11:45 -0400)
committerColin Walters <walters@verbum.org>
Wed, 28 Jun 2023 15:45:15 +0000 (11:45 -0400)
commit3c76d03af24de5ac8fa3a834fde8e8d11179021c
treeee0cd94ddbdc7569aaa958a3d9d1012f82193d65
parente0e2144e12899d615441e9e13e522d973c5354c9
Fix return value of generator on non-ostree systems

Commit aa72caffb540114a0e8635ab2990b9c8b0b8f9db
regressed the `ostree-system-generator` on non-ostree systems.
If there's no `ostree=` karg, we need to just exit 0.

Closes: https://github.com/ostreedev/ostree/issues/2909
Fixes: aa72caffb540114a0e8635ab2990b9c8b0b8f9db
src/switchroot/ostree-mount-util.h
src/switchroot/ostree-prepare-root.c
src/switchroot/ostree-system-generator.c