aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/earlyinit/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/earlyinit/main.go')
-rw-r--r--cmd/earlyinit/main.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/earlyinit/main.go b/cmd/earlyinit/main.go
index 40883302..8bf7230a 100644
--- a/cmd/earlyinit/main.go
+++ b/cmd/earlyinit/main.go
@@ -94,6 +94,22 @@ func main() {
"",
))
+ // after top level has been set up
+ mustSyscall("remount root", Mount(
+ "",
+ "/",
+ "",
+ MS_REMOUNT|MS_BIND|
+ MS_RDONLY|MS_NODEV|MS_NOSUID|MS_NOEXEC,
+ "",
+ ))
+
+ must(os.WriteFile(
+ "/sys/module/firmware_class/parameters/path",
+ []byte("/system/lib/firmware"),
+ 0,
+ ))
+
}
// mustSyscall calls [log.Fatalln] if err is non-nil.