block devices: filter the root disk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user