Disable integrity and encryption for debug builds
This disables disk encryption and integrity when running in the debug profile.
It also makes mkfs.xfs not issue discards as the backend is either a sparse file
(during development) or dm-crypt/dm-integrity which ignores them. In both cases
they are counterproductive and slow things down.
Test Plan: Not exercised by normal tests, manually tested.
X-Origin-Diff: phab/D681
GitOrigin-RevId: 24fae1e3de8d852b414ebd50f3fbe032440683fb
diff --git a/metropolis/node/core/delve_enabled.go b/metropolis/node/core/delve_enabled.go
index b3b859c..0aca50e 100644
--- a/metropolis/node/core/delve_enabled.go
+++ b/metropolis/node/core/delve_enabled.go
@@ -21,6 +21,7 @@
"fmt"
"os/exec"
+ "git.monogon.dev/source/nexantic.git/metropolis/node"
"git.monogon.dev/source/nexantic.git/metropolis/node/core/network"
)
@@ -32,7 +33,7 @@
// and in early-boot no network interface is available to do that through. Also external access isn't possible
// early on anyways.
networkSvc.GetIP(context.Background(), true)
- dlvCmd := exec.Command("/dlv", "--headless=true", fmt.Sprintf("--listen=:%v", common.DebuggerPort),
+ dlvCmd := exec.Command("/dlv", "--headless=true", fmt.Sprintf("--listen=:%v", node.DebuggerPort),
"--accept-multiclient", "--only-same-user=false", "attach", "--continue", "1", "/init")
if err := dlvCmd.Start(); err != nil {
panic(err)