* Improve journald logger
tag the logs with the identifier so they can be found easily with
journald
---------
Signed-off-by: Itxaka <itxaka@kairos.io>
* Improve logger
- Try to log to jorunald if available
- fallback to file writing if not
- write to single file instead of appending times
- add a locking mechanism so several processes cant write to the same
file
- prepend the PID of the process if we are running outside journald for
easy tracking of grouped messages
Signed-off-by: Itxaka <itxaka@kairos.io>
* Simplify
Signed-off-by: Itxaka <itxaka@kairos.io>
---------
Signed-off-by: Itxaka <itxaka@kairos.io>
Provides raw disk utils to transform a raw disk into a GCE or Azure disk
Provieds a new constants pkg to store constants that cn be used across
all projects
Expands the KairosFs interface to be in line with what its used across
the projects
Signed-off-by: Itxaka <itxaka@kairos.io>
It was added first to agent as it was needed for upgrade but if we are
gonna reuse this to check for signature validity in random files, we
better have it on sdk so we can use it both on agent and immucore and
works exactly the same
Signed-off-by: Itxaka <itxaka@kairos.io>