Apply mountoint vs mountpointS lsblk output fix also to mounts

This commit is contained in:
Johannes Zellner
2026-01-06 21:11:16 +01:00
parent 70f6343a2c
commit 806309fc33
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -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