restore: fix crash when trying to mount fs volumes

This commit is contained in:
Girish Ramakrishnan
2025-12-04 00:14:37 +01:00
parent 59b9991a2c
commit 162e51a0af

View File

@@ -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
}
}