Commit Graph

15 Commits

Author SHA1 Message Date
Itxaka
2078966079
Improve journald logger (#586)
* Improve journald logger

tag the logs with the identifier so they can be found easily with
journald


---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-02 14:16:56 +02:00
Itxaka
aa62f8ba73
Improve logger (#566)
* 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>
2025-02-24 11:34:54 +01:00
Itxaka
0b506b6684
Revert "Add raw disk utils"
This reverts commit 6921f6eb22.
2025-01-02 15:25:51 +01:00
Itxaka
6921f6eb22
Add raw disk utils
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>
2024-12-18 12:15:29 +01:00
Itxaka
ae2e2d7758
Override the ghw paths on ghw mock (#496) 2024-09-17 13:10:26 +02:00
Itxaka
64886b7301
Clean up ghw (#494) 2024-09-16 15:54:10 +02:00
Itxaka
ea5c6c7028
Bring GHW clone and partition type into sdk (#492) 2024-09-12 15:25:19 +02:00
Itxaka
a0c7d13520
Port signature utils to sdk from agent (#117)
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>
2024-06-04 08:31:00 +02:00
Itxaka
6364d90a12
Add a method to return full certs (#103)
* Add a method to return full certs

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix lint

Signed-off-by: Itxaka <itxaka@kairos.io>

* Rework the cert extraction

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-04-18 13:11:52 +00:00
Itxaka
599359ec30
Print the EFI certs in the state command (#98)
* Print the EFI certs in the state command

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix key for yaml/json output

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix go.mod

Signed-off-by: Itxaka <itxaka@kairos.io>

* Move things around

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix format

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-04-17 14:57:57 +00:00
Itxaka
d729cc787c
Provide a util method to get the certs in the system (#96) 2024-04-17 14:00:34 +02:00
Itxaka
1c55cf24d3
This makes it so it implements other logger interfaces fully (#72) 2024-03-01 11:53:08 +01:00
Itxaka
b3dfedfacb Add milliseconds to log files
Signed-off-by: Itxaka <itxaka@kairos.io>
2024-03-01 09:35:17 +01:00
Itxaka
e0ea9975a4
New logger (#70) 2024-02-28 09:29:02 +01:00
Itxaka
9e420d9015
Add KairosFS type and detectBoot with FS (#46) 2023-09-01 15:31:04 +03:00