ecc6e5b038
Add strict shell options, root and block-device validation, and a typed-device confirmation prompt before wiping. Preserve the fallback wipe sequence through secure discard, zero discard, and dd, while tightening error handling and keeping messages concise.
1.4 KiB
1.4 KiB
description
| description |
|---|
| mtm-ddwipe project conventions |
Project conventions
- Use English throughout the project.
- Keep shell scripts Bash-based.
- Preserve the current behavior of the main script:
mtm-ddwipewipes block devices. - Strengthen destructive-action safety checks in
mtm-ddwipe. - Keep
mtm-ddwipeinteractive by default. - Require explicit confirmation before destructive actions.
- Keep user-facing messages short and clear.
- Keep error and help messages short and clear.
- Prefer minimal, focused changes that preserve intent.
- Keep
.continue/rules/project.mdaligned with project conventions and concise. mtm-ddwipeis a small Bash script with helper functions.- Keep the host and line-number removal behavior intact for related output processing.
mtm-ddwipemust print a usage line and support-h/--help.- Validate that wipe targets are real block devices before operating on them.
- Keep short, explicit confirmation prompts before destructive operations.
- Prefer confirmation prompts that require typing the target device path.
- Keep help text concise and usage-first.
- Keep destructive safeguards strict and explicit.
- If adding non-interactive support, make it an opt-in safety flag.
- Keep device identification prompts clear and specific.
- Preserve the fallback wipe flow: secure discard, zero discard, then zero-fill with
dd.
Project identity
- Main script:
mtm-ddwipe - License: GNU GPL v3