Skip to content

Commit 8c62f66

Browse files
Hanzhang Zeng (Roger)ahmelsayed
authored andcommitted
Force nonempty mount in squashfuse_ll and fuse-zip
1 parent f1d0536 commit 8c62f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebJobs.Script.WebHost/Management/InstanceManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ bool FileIsAny(params string[] options)
326326
}
327327

328328
private void MountFsImage(string filePath, string scriptPath)
329-
=> RunFuseMount($"squashfuse_ll '{filePath}' '{scriptPath}'", scriptPath);
329+
=> RunFuseMount($"squashfuse_ll -o nonempty '{filePath}' '{scriptPath}'", scriptPath);
330330

331331
private void MountZipFile(string filePath, string scriptPath)
332-
=> RunFuseMount($"fuse-zip -r '{filePath}' '{scriptPath}'", scriptPath);
332+
=> RunFuseMount($"fuse-zip -o nonempty -r '{filePath}' '{scriptPath}'", scriptPath);
333333

334334
private void RunFuseMount(string mountCommand, string targetPath)
335335
{

0 commit comments

Comments
 (0)