fix tests
This commit is contained in:
+1
-1
@@ -328,7 +328,7 @@ async function getBlockDevices() {
|
||||
const result = [];
|
||||
for (const device of devices) {
|
||||
const mountpoints = Array.isArray(device.mountpoints) ? device.mountpoints : [ device.mountpoint ]; // we only support one mountpoint here old lsblk only exposed one via .mountpoint
|
||||
if (mountpoints.includes('/') || mountpoints.includes('/boot')) continue;
|
||||
if (mountpoints.includes('/') || mountpoints.includes('/boot')) continue; // cannot be used for backups and volumes
|
||||
|
||||
result.push({
|
||||
path: device.name,
|
||||
|
||||
Reference in New Issue
Block a user