Open mauromorales opened 1 year ago
FYI, IIRC this comes from yip directly mudler/yip rather than elemental-cli. And if I further remember correctly, for yip there is no difference between the IF check failing or the IF check being wrong. Elemental just provides the logger to the yip runner, so changes should go into yip instead.
Is your feature request related to a problem? Please describe.
The logs from elemental cli
journalctl -t elemental
can be a bit hard to consume. For example, the following stage inside/system/oem/04_installer.yaml
Can produce the following output:
Which doesn't tell me if, this is an issue and requires that I go into the yaml file to get an idea of which are those "if statements that did not pass"
Describe the solution you'd like
First of all, I'd expect those 2 stages considered as only 1 since it is not a different stage, it's just a different implementation depending on the init system in use.
Then I'd expect some logic like the following:
$(kairos-agent state get boot)" == "livecd_boot"
is false, I'd expect to get only aninfo
log, not anerror
one, saying something along the lines of "State is not livecd_boot, skipping"info
log expressing that it was successful (only once)error
log expressing that it was not successful (only once)Describe alternatives you've considered
Additional context