diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-03 17:53:00 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-03 17:53:00 +0900 |
| commit | a492d751367ddf12d4e679f84ce600c6dbeda0dd (patch) | |
| tree | eea55fda57bd4b1878135e993b3e2fa05102d8c8 /cmd/earlyinit | |
| parent | 4919a5ef4913700b9294b6331786d36b5316afc5 (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>
Diffstat (limited to 'cmd/earlyinit')
| -rw-r--r-- | cmd/earlyinit/mount.go | 2 |
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 { |
