From 1007f933b32afd3ce671f2e157bedbdbd9eee411 Mon Sep 17 00:00:00 2001 From: Jakub Dobry Date: Thu, 2 Oct 2025 11:54:01 +0200 Subject: [PATCH 1/2] enable journal and metadata csum --- .../internal/template/build/core/filesystem/ext4.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/orchestrator/internal/template/build/core/filesystem/ext4.go b/packages/orchestrator/internal/template/build/core/filesystem/ext4.go index 07a3502148..46d09b7319 100644 --- a/packages/orchestrator/internal/template/build/core/filesystem/ext4.go +++ b/packages/orchestrator/internal/template/build/core/filesystem/ext4.go @@ -41,8 +41,8 @@ func Make(ctx context.Context, rootfsPath string, sizeMb int64, blockSize int64) cmd := exec.CommandContext(ctx, "mkfs.ext4", // Matches the final ext4 features used by tar2ext4 tool - // But enables resize_inode, sparse_super (default, required for resize_inode) - "-O", `^has_journal,^dir_index,^64bit,^dir_nlink,^metadata_csum,ext_attr,sparse_super2,filetype,extent,flex_bg,large_file,huge_file,extra_isize`, + // But enables resize_inode, sparse_super (default, required for resize_inode), has_journal (default), metadata_csum (default) + "-O", `^dir_index,^64bit,^dir_nlink,ext_attr,sparse_super2,filetype,extent,flex_bg,large_file,huge_file,extra_isize`, "-b", strconv.FormatInt(blockSize, 10), "-m", strconv.FormatInt(reservedBlocksPercentage, 10), "-i", strconv.FormatInt(inodesRatio, 10), From 337b5f7a0c92030ff03c26b4769cdbef99a27003 Mon Sep 17 00:00:00 2001 From: Jakub Dobry Date: Thu, 2 Oct 2025 12:16:50 +0200 Subject: [PATCH 2/2] update all base images --- .../orchestrator/internal/template/build/storage/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/orchestrator/internal/template/build/storage/cache/cache.go b/packages/orchestrator/internal/template/build/storage/cache/cache.go index 9422584c78..e8fc0e883b 100644 --- a/packages/orchestrator/internal/template/build/storage/cache/cache.go +++ b/packages/orchestrator/internal/template/build/storage/cache/cache.go @@ -14,7 +14,7 @@ import ( "github.com/e2b-dev/infra/packages/shared/pkg/storage" ) -const hashingVersion = "v1" +const hashingVersion = "v2" const minimalCachedTemplateVersion = 2