node/core: add sysctls
Change-Id: I47b0d639a62f73f134430c5164a35eef2b5622d7
Reviewed-on: https://review.monogon.dev/c/monogon/+/2273
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/node/core/main.go b/metropolis/node/core/main.go
index 3eb9024..583d72f 100644
--- a/metropolis/node/core/main.go
+++ b/metropolis/node/core/main.go
@@ -184,6 +184,9 @@
if err := supervisor.Run(ctx, "pstore", dumpAndCleanPstore); err != nil {
return fmt.Errorf("when starting pstore: %w", err)
}
+ if err := supervisor.Run(ctx, "sysctl", nodeSysctls); err != nil {
+ return fmt.Errorf("when applying sysctls: %w", err)
+ }
// The kernel does of course not run in this runnable, only the log pipe
// runs in it.