add note on confusing naming
This commit is contained in:
@@ -326,6 +326,7 @@ async function getBlockDevices() {
|
||||
const info = safe.JSON.parse(output);
|
||||
if (!info) throw new BoxError(BoxError.INTERNAL_ERROR, `failed to parse lsblk: ${safe.error.message}`);
|
||||
|
||||
// despite the function and variable names, this is the partitions and not the block devices!
|
||||
const devices = info.blockdevices.filter(d => d.fstype === 'ext4' || d.fstype === 'xfs');
|
||||
|
||||
const result = [];
|
||||
|
||||
Reference in New Issue
Block a user