Skip to content

Commit d7233b2

Browse files
committed
Ignore lost+found in our cert cache folder
1 parent 051bc45 commit d7233b2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/tls-certificates/cert-cache.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ export class PersistentCertCache {
3333

3434
await Promise.all(certFiles.map(async (certName) => {
3535
if (!certName.endsWith('.cert.json')) {
36-
console.log(`Unexpected file in cert dir: ${certName}`);
36+
// Linux volumes often have a root lost+found directory, we can just
37+
// ignore that.
38+
if (certName !== 'lost+found') {
39+
console.log(`Unexpected file in cert dir: ${certName}`);
40+
}
41+
3742
return;
3843
}
3944

0 commit comments

Comments
 (0)