From 0e3cc97ee60770a7d8d3eef12417eb1df5968f7d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 20 Jul 2025 10:18:06 +0200 Subject: [PATCH] system: use last mountpoint like before --- src/system.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/system.js b/src/system.js index c7858c8e5..05e972299 100644 --- a/src/system.js +++ b/src/system.js @@ -324,8 +324,6 @@ async function getBlockDevices() { const devices = info.blockdevices.filter(d => d.fstype === 'ext4' || d.fstype === 'xfs'); - debug(`getBlockDevices: Found ${devices.length} devices. ${devices.map(d => d.name).join(', ')}`); - return devices.map(function (d) { return { path: d.name, @@ -333,7 +331,7 @@ async function getBlockDevices() { type: d.fstype, uuid: d.uuid, rota: d.rota, // false (ssd) true (hdd) . unforuntately, this is not set correctly when virtualized (like in DO) - mountpoint: Array.isArray(d.mountpoints) ? d.mountpoints[0] : d.mountpoint // we only support one mountpoint here old lsblk only exposed one via .mountpoint + mountpoint: Array.isArray(d.mountpoints) ? d.mountpoints[d.mountpoints.length-1] : d.mountpoint // we only support one mountpoint here old lsblk only exposed one via .mountpoint }; }); }