diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 4228da0..bc69bc5 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.92.0" +channel = "1.95.0" components = ["rustfmt", "rust-std", "clippy"] diff --git a/src/recorders/postinstall/system.rs b/src/recorders/postinstall/system.rs index 8e1acc1..2cb3d33 100644 --- a/src/recorders/postinstall/system.rs +++ b/src/recorders/postinstall/system.rs @@ -102,80 +102,94 @@ impl SystemRecorder { /// /// Manual equivalent: /// ```sh - /// journalctl -u protect-daemon + /// journalctl -u protect-daemon -o export /// ``` pub async fn record_daemon_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u protect-daemon").await + self.common + .run_tool("journalctl -u protect-daemon -o export") + .await } /// Records the `protect-cri` journalctl log. /// /// Manual equivalent: /// ```sh - /// journalctl -u protect-cri + /// journalctl -u protect-cri -o export /// ``` pub async fn record_cri_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u protect-cri").await + self.common + .run_tool("journalctl -u protect-cri -o export") + .await } /// Records the `protect-storage` journalctl log. /// /// Manual equivalent: /// ```sh - /// journalctl -u protect-storage + /// journalctl -u protect-storage -o export /// ``` pub async fn record_storage_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u protect-storage").await + self.common + .run_tool("journalctl -u protect-storage -o export") + .await } /// Records the `protect-network` journalctl log. /// /// Manual equivalent: /// ```sh - /// journalctl -u protect-network + /// journalctl -u protect-network -o export /// ``` pub async fn record_network_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u protect-network").await + self.common + .run_tool("journalctl -u protect-network -o export") + .await } /// Records the `containerd` journalctl log. /// /// Manual equivalent: /// ```sh - /// journalctl -u containerd + /// journalctl -u containerd -o export /// ``` pub async fn record_containerd_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u containerd").await + self.common + .run_tool("journalctl -u containerd -o export") + .await } /// Records the `oxenstored` journalctl log. /// /// Manual equivalent: /// ```sh - /// journalctl -u oxenstored + /// journalctl -u oxenstored -o export /// ``` pub async fn record_oxenstored_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u oxenstored").await + self.common + .run_tool("journalctl -u oxenstored -o export") + .await } /// Records the `kubelet` journalctl log. /// /// Manual equivalent: /// ```sh - /// journalctl -u kubelet + /// journalctl -u kubelet -o export /// ``` pub async fn record_kubelet_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u kubelet").await + self.common + .run_tool("journalctl -u kubelet -o export") + .await } /// Records the current boot kernel journalctl log. /// /// Manual equivalent: /// ```sh - /// journalctl -b + /// journalctl -b -o export /// ``` pub async fn record_boot_log(&self) -> CheckResult { - self.common.run_tool("journalctl -b").await + self.common.run_tool("journalctl -b -o export").await } /// Records the Xen hypervisor capability string. @@ -195,11 +209,11 @@ impl SystemRecorder { /// /// Manual equivalent: /// ```sh - /// journalctl -u protect-orchestrator + /// journalctl -u protect-orchestrator -o export /// ``` pub async fn record_orchestrator_logs(&self) -> CheckResult { self.common - .run_tool("journalctl -u protect-orchestrator") + .run_tool("journalctl -u protect-orchestrator -o export") .await } @@ -207,10 +221,12 @@ impl SystemRecorder { /// /// Manual equivalent: /// ```sh - /// journalctl -u protect-preinit + /// journalctl -u protect-preinit -o export /// ``` pub async fn record_preinit_logs(&self) -> CheckResult { - self.common.run_tool("journalctl -u protect-preinit").await + self.common + .run_tool("journalctl -u protect-preinit -o export") + .await } /// Records the Edera Protect daemon configuration.