restore: fix crash when trying to mount fs volumes
This commit is contained in:
@@ -213,8 +213,8 @@ async function mountAll() {
|
|||||||
debug('mountAll: mouting all volumes');
|
debug('mountAll: mouting all volumes');
|
||||||
|
|
||||||
for (const volume of await list()) {
|
for (const volume of await list()) {
|
||||||
|
if (volume.mountType === mounts.MOUNT_TYPE_MOUNTPOINT || volume.mountType === mounts.MOUNT_TYPE_FILESYSTEM) continue;
|
||||||
const mount = { description: volume.name, ...volume };
|
const mount = { description: volume.name, ...volume };
|
||||||
await mounts.tryAddMount(mount, { timeout: 10, skipCleanup: true }); // have to wait to avoid race with apptask
|
await mounts.tryAddMount(mount, { timeout: 10, skipCleanup: true }); // have to wait to avoid race with apptask
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user