feat: add optional wipe tool fallbacks by device type

This commit is contained in:
2026-04-28 00:28:50 +02:00
parent c56aec350d
commit 07c210164a
2 changed files with 93 additions and 5 deletions
+7
View File
@@ -14,6 +14,12 @@ description: mtm-ddwipe project conventions
- Keep messages short and clear.
- Keep help concise, usage-first, and warning-focused.
- Preserve the fallback wipe flow: secure discard, zero discard, then `dd` zero-fill.
- Keep optional tools optional.
- Use extra wipe methods only if the command is present.
- Use `ddrescue` or `dd_rescue` only after `dd` fails.
- Keep `nvme-cli` and `hdparm` optional.
- Use `nvme` and `hdparm` only on matching device types.
- Do not make new external tools required.
- Keep changes minimal and preserve intent.
- Keep `./continue/rules/project.md` aligned and concise.
- If non-interactive support is added, make it an opt-in safety flag.
@@ -21,3 +27,4 @@ description: mtm-ddwipe project conventions
# Project identity
- Main script: `mtm-ddwipe`
- License: GNU GPL v3