Skip to content

Conversation

@deepssin
Copy link
Contributor

When /scratch_devs file is missing, the function only detected traditional SCSI/VirtIO devices (/dev/sd? and /dev/vd?), causing failures on machines using NVMe devices.

This change:

  • Adds NVMe device detection (/dev/nvme*n1) as fallback
  • Filters out nvme0n1 as root device (similar to vda)
  • Fixes iteration bug when removing root devices
  • Filters out empty strings from device list

When /scratch_devs file is missing, the function only detected
traditional SCSI/VirtIO devices (/dev/sd? and /dev/vd?), causing
failures on machines using NVMe devices.

This change:
- Adds NVMe device detection (/dev/nvme*n1) as fallback
- Filters out nvme0n1 as root device (similar to vda)
- Fixes iteration bug when removing root devices
- Filters out empty strings from device list

Signed-off-by: deepssin <deepssin@redhat.com>
@deepssin deepssin requested review from djgalloway and zmc December 24, 2025 10:45
@deepssin deepssin requested a review from a team as a code owner December 24, 2025 10:45
@deepssin deepssin requested review from amathuria and removed request for a team December 24, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant