Skip to content

Commit f6121c9

Browse files
committed
Fix ext4 path detection for debugfs stat on CI
1 parent dc8dbc3 commit f6121c9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/oci2gondolin/materialize/runtime-injection.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,12 @@ function pathExistsInExt4(debugfsCmd: string, ext4Path: string, sourcePath: stri
223223
stdio: ["ignore", "pipe", "pipe"],
224224
});
225225

226-
return result.status === 0;
226+
if (result.status !== 0) {
227+
return false;
228+
}
229+
230+
const output = `${result.stdout ?? ""}\n${result.stderr ?? ""}`;
231+
return !/file not found by ext2_lookup/i.test(output);
227232
}
228233

229234
function deriveMuslLibcSymlinkName(loaderFileName: string): string | undefined {

0 commit comments

Comments
 (0)