Skip to content

fix(devices): hide internal/system disks from flash targets (#159)#160

Merged
SuperKali merged 1 commit into
mainfrom
fix/159-internal-disk-detection
Jun 24, 2026
Merged

fix(devices): hide internal/system disks from flash targets (#159)#160
SuperKali merged 1 commit into
mainfrom
fix/159-internal-disk-detection

Conversation

@SuperKali

Copy link
Copy Markdown
Member

Closes #159.

A user with two NVMe drives saw the second one (internal, mounted at /home) offered as a writable target, because only the disk holding /, /boot or /boot/efi was flagged as system.

Detection now keys off the bus type: internal buses (NVMe/SATA/SAS) are hidden by default, SD and USB stay selectable, and the root/boot check still covers boards that boot from the disk being reflashed. Same logic on Windows; macOS already did this. Bus type beats balena's RM/HOTPLUG rule because a hot-plug PCIe NVMe can report HOTPLUG=1.

A new opt-in setting (off by default) unlocks internal/system disks at your own risk, with the real drive icon instead of a lock and a warning row in the confirm screen. Translated across all 18 locales.

Anchor is_system on bus type (Linux/Windows) so internal NVMe/SATA disks
(e.g. a second drive mounted at /home) are hidden by default while SD/USB
stay selectable and the running OS disk is always protected. Add an opt-in
"allow system devices" setting to reveal and flash them at the user's own
risk, with a contextual warning row in the confirm summary.
@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

🧪 Test Builds

Version: 0.0.0-pr.160 | PR: #160 | Status: ready for testing

Platform Download
Linux x64 📦 .deb / .AppImage
Windows x64 📦 .exe
macOS ARM64 📦 .dmg
ℹ️ About these builds
  • 🔓 Public downloads via nightly.link (no GitHub login required)
  • ⚠️ Unsigned builds for testing purposes only
  • Expires in 7 days
  • 🔄 Updated on every push to this PR

@github-actions github-actions Bot added the status: ready for review Ready to be reviewed label Jun 23, 2026
@SuperKali SuperKali merged commit 5212566 into main Jun 24, 2026
16 of 17 checks passed
@SuperKali SuperKali deleted the fix/159-internal-disk-detection branch June 24, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready for review Ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Storage shows my additional internal NvME as usable device

1 participant