You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`EDERA_PREFLIGHT_TARGET_DIR`| Directory to chroot to before running checks. Needed when running in a container. |`/host`|
41
+
|`EDERA_PREFLIGHT_SKIP_GROUPS`| Semicolon-separated list of groups to skip. |`PVHChecks;KernelChecks`|
38
42
|`EDERA_PREFLIGHT_REPORT_DIR`| Directory to write a report to. Defaults to tmpdir |`/tmp`|
39
43
40
44
---
41
45
42
46
## Example Output
43
47
44
48
```text
45
-
[2025-09-17T05:05:33Z INFO preflight] Running Group [System Checks] - System requirement checks
46
-
[2025-09-17T05:05:33Z DEBUG preflight::system] total memory = 66617298944
47
-
[2025-09-17T05:05:33Z ERROR preflight] [System Checks] Errored: group errored
48
-
[2025-09-17T05:05:33Z INFO preflight] [System Checks] Enough Memory: Passed
49
-
[2025-09-17T05:05:33Z ERROR preflight] [System Checks] Should Error: Errored: Pretending to error
50
-
[2025-09-17T05:05:33Z WARN preflight] [System Checks] Should Fail: Failed: Pretending to fail
51
-
[2025-09-17T05:05:33Z INFO preflight] Running Group [Scripted Checks] - Checks composed through small shell scripts
52
-
[2025-09-17T05:05:33Z ERROR preflight] [Scripted Checks] Errored: group errored
53
-
[2025-09-17T05:05:33Z INFO preflight] [Scripted Checks] Should Pass: Passed
54
-
[2025-09-17T05:05:33Z WARN preflight] [Scripted Checks] Should Fail: Failed: script returned Some(1)
55
-
[2025-09-17T05:05:33Z ERROR preflight] [Scripted Checks] /totally/fake/script: Errored: No such file or directory (os error 2)
56
-
Error: checks failed
49
+
[2026-02-13T00:28:35Z INFO preflight] Writing all files to /tmp/protect-preflight-bundle-20260213-002835
50
+
[2026-02-13T00:28:35Z INFO preflight] Running Group [System Checks] - System requirement checks
51
+
[2026-02-13T00:28:35Z DEBUG preflight::checkers::system] Enough space on disk mounted at / - 617760940032
52
+
[2026-02-13T00:28:35Z DEBUG preflight::checkers::system] Not enough space on disk mounted at /etc/resolv.conf - 9729925120
53
+
[2026-02-13T00:28:35Z DEBUG preflight::checkers::system] Enough space on disk mounted at /etc/hostname - 617760940032
54
+
[2026-02-13T00:28:35Z DEBUG preflight::checkers::system] Enough space on disk mounted at /etc/hosts - 617760940032[2026-02-13T00:28:35Z DEBUG preflight::checkers::system] total memory = 28762972160
55
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Checks] Passed
56
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Checks] Enough Memory: Passed
57
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Checks] Enough Disk: Passed
58
+
[2026-02-13T00:28:35Z INFO preflight] Running Group [PVH Checks] - PVH capability checks
[2026-02-13T00:28:35Z INFO preflight::helpers] [Kernel Checks] Passed
69
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [Kernel Checks] Host Has Necessary Modules: Passed
70
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [Kernel Checks] Host Kernel Version Is Good: Passed
71
+
[2026-02-13T00:28:35Z INFO preflight] Running Group [System Info Recorder] - System requirement and status checks - records for informational purposes
72
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Info Recorder] Passed
73
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Info Recorder] Record lspci -vvv: Passed
74
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Info Recorder] Record dmidecode: Passed
75
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Info Recorder] Record /proc/cpuinfo: Passed
76
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Info Recorder] Record /proc/cmdline: Passed
77
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Info Recorder] Record /boot/grub2/grub.cfg: Passed
78
+
[2026-02-13T00:28:35Z INFO preflight::helpers] [System Info Recorder] Record boot/config-6.18.6: Passed
79
+
[2026-02-13T00:28:35Z DEBUG preflight] Read 84023 bytes of tar
80
+
[2026-02-13T00:28:35Z INFO preflight] Wrote to: /tmp/protect-preflight-bundle-20260213-002835.tar.gz
57
81
```
58
82
59
83
***INFO** → check passed or group started
@@ -67,8 +91,11 @@ Exit code is **non-zero** if any check/group fails or errors.
67
91
## Notes
68
92
69
93
* Use `EDERA_PREFLIGHT_SKIP_GROUPS` to bypass slow or irrelevant checks.
70
-
* Script-based checks must be **executable** and located in `EDERA_PREFLIGHT_SCRIPTS_DIR`.
71
94
72
-
## Script Based Checks
95
+
## Dev Notes
96
+
97
+
*[src/recorders](src/recorders) - Special category of checkers that capture host machine state and generate informational reports.
98
+
*[src/checkers](src/checkers) - All checkers that validate and actively interrogate various aspects of the host machine go here.
99
+
*[src/helpers](src/helpers) - Shared bits.
73
100
74
-
Check the scripts [README.md](./scripts/README.md)
101
+
By default, everything runs inside the container, and any system tools or binaries or other bits needed by the checkers can be installed or baked inside the container. For checks that need to jump out and touch the host filesystem or state, we use the [src/helpers/host_executor.rs](src/helpers/host_executor.rs).
0 commit comments