Force nonempty mount in squashfuse_ll and fuse-zip
MODIFY
src/WebJobs.Script.WebHost/Management/InstanceManager.cs
src/WebJobs.Script.WebHost/Management/InstanceManager.cs
@@ -326,10 +326,10 @@ bool FileIsAny(params string[] options)
}
private void MountFsImage(string filePath, string scriptPath)
- => RunFuseMount($"squashfuse_ll '{filePath}' '{scriptPath}'", scriptPath);
+ => RunFuseMount($"squashfuse_ll -o nonempty '{filePath}' '{scriptPath}'", scriptPath);
private void MountZipFile(string filePath, string scriptPath)
- => RunFuseMount($"fuse-zip -r '{filePath}' '{scriptPath}'", scriptPath);
+ => RunFuseMount($"fuse-zip -o nonempty -r '{filePath}' '{scriptPath}'", scriptPath);
private void RunFuseMount(string mountCommand, string targetPath)
{

Force nonempty mount in squashfuse_ll and fuse-zip