From a492d751367ddf12d4e679f84ce600c6dbeda0dd Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 3 Nov 2026 17:53:00 +0900 Subject: cmd/earlyinit: explicit MS_RDONLY mounting system This prevents the kernel from attempting to write to the device, even though squashfs itself is read-only. Signed-off-by: Ophestra --- cmd/earlyinit/mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/earlyinit/mount.go') diff --git a/cmd/earlyinit/mount.go b/cmd/earlyinit/mount.go index 51d4ecc9..059267d9 100644 --- a/cmd/earlyinit/mount.go +++ b/cmd/earlyinit/mount.go @@ -58,7 +58,7 @@ func mustMountSystem( systemPath.String(), "/system/", "squashfs", - 0, + syscall.MS_RDONLY|syscall.MS_NOATIME, "threads=multi", ) if err == nil { -- cgit v1.3.1