aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-03 17:53:00 +0900
committerOphestra <cat@gensokyo.uk>2026-11-03 17:53:00 +0900
commita492d751367ddf12d4e679f84ce600c6dbeda0dd (patch)
treeeea55fda57bd4b1878135e993b3e2fa05102d8c8
parent4919a5ef4913700b9294b6331786d36b5316afc5 (diff)
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 <cat@gensokyo.uk>
-rw-r--r--cmd/earlyinit/mount.go2
1 files changed, 1 insertions, 1 deletions
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 {