block devices: filter the root disk

This commit is contained in:
Girish Ramakrishnan
2025-09-10 11:40:13 +02:00
parent c8e34ac522
commit ba14d1e846
3 changed files with 20 additions and 15 deletions
-1
View File
@@ -163,7 +163,6 @@ async function openVolumeDialog(volume) {
const ext4BlockDevices = [], xfsBlockDevices = [];
for (const blockDevice of blockDevices) {
if (!blockDevice.mountpoint) continue; // only offer unmounted disks
blockDevice.label = blockDevice.path; // // amend label for UI
if (blockDevice.type === 'ext4') ext4BlockDevices.push(blockDevice);
else if (blockDevice.type === 'xfs') xfsBlockDevices.push(blockDevice);