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');
|
||||
|
||||
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 };
|
||||
await mounts.tryAddMount(mount, { timeout: 10, skipCleanup: true }); // have to wait to avoid race with apptask
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user