generator: Restore graceful exit behaviour if `ostree` karg missing
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 6 Feb 2024 19:42:32 +0000 (14:42 -0500)
committerJonathan Lebon <jonathan@jlebon.com>
Tue, 6 Feb 2024 19:47:09 +0000 (14:47 -0500)
commit15ec3399c2e7f23ad13a9a225893729c19dd729c
tree32bff790d48dfa40a435250822c2382fb14beee8
parent31b804f20d2265d9c8ec806665841688b3eecfbc
generator: Restore graceful exit behaviour if `ostree` karg missing

In CoreOS live environments, we do have `/run/ostree` but no `ostree=`
karg; we hackily fool `ostree-prepare-root.service` by bind-mounting
over `/proc/cmdline` so it does the right thing. Presumably, we should
clean this up eventually, but even so we don't want to require PXE users
to add an `ostree=` arg, so we need to tolerate this.

So this assertion would fail there. Restore the behaviour prior to
b9ce0e89 and re-add a more contemporary comment.

Fixes b9ce0e89 ("generator: Exit if there's no `/run/ostree`").
src/libostree/ostree-impl-system-generator.c