Apply mountoint vs mountpointS lsblk output fix also to mounts
This commit is contained in:
@@ -333,6 +333,7 @@ async function getBlockDevices() {
|
||||
|
||||
const result = [];
|
||||
for (const device of devices) {
|
||||
// see mounts.js validateMountOptions()
|
||||
const mountpoints = Array.isArray(device.mountpoints)
|
||||
? (device.mountpoints[0] === null ? [] : device.mountpoints) // convert [ null ] to []
|
||||
: (device.mountpoint ? [ device.mountpoint ] : []); // old lsblk only exposed one .mountpoint
|
||||
|
||||
Reference in New Issue
Block a user