Skip to content

Commit ea6429a

Browse files
authored
Add boot log (#106)
Fixes: #105
1 parent 3382d98 commit ea6429a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/recorders/postinstall/system.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl SystemRecorder {
4747
self.record_kernel_cfg().boxed(),
4848
self.record_xen_capabilities().boxed(),
4949
self.record_loaded_modules().boxed(),
50+
self.record_boot_log().boxed(),
5051
])
5152
.await;
5253

@@ -241,6 +242,16 @@ impl SystemRecorder {
241242
self.run_tool("journalctl -u kubelet").await
242243
}
243244

245+
/// Records the current boot kernel journalctl log.
246+
///
247+
/// Manual equivalent:
248+
/// ```sh
249+
/// journalctl -b
250+
/// ```
251+
pub async fn record_boot_log(&self) -> CheckResult {
252+
self.run_tool("journalctl -b").await
253+
}
254+
244255
/// Records CPU hardware details and feature flags.
245256
///
246257
/// Manual equivalent:

0 commit comments

Comments
 (0)