smalltown -> metropolis
This pass removes all mentions of Smalltown, both from code and comments,
and replaces them with appropriate new terminology.
Test Plan: Refactor, covered by CI.
X-Origin-Diff: phab/D674
GitOrigin-RevId: 04a94d44ef07d46f7821530da5614daefe16d7ea
diff --git a/metropolis/node/core/switchroot.go b/metropolis/node/core/switchroot.go
index 5865225..c980a3a 100644
--- a/metropolis/node/core/switchroot.go
+++ b/metropolis/node/core/switchroot.go
@@ -37,20 +37,20 @@
// We detect the need to remount to tmpfs over env vars.
// The first run of /init (from initramfs) will not have this var, and will be re-exec'd from a new tmpfs root with
// that variable set.
- witness := "SIGNOS_REMOUNTED"
+ witness := "METROPOLIS_REMOUNTED"
// If the witness env var is found in the environment, it means we are ready to go.
environ := os.Environ()
for _, env := range environ {
if strings.HasPrefix(env, witness+"=") {
- log.Info("Smalltown running in tmpfs root")
+ log.Info("Metropolis node running in tmpfs root")
return nil
}
}
// Otherwise, we need to remount to a tmpfs.
environ = append(environ, witness+"=yes")
- log.Info("Smalltown running in initramfs, remounting to tmpfs...")
+ log.Info("Metropolis node running in initramfs, remounting to tmpfs...")
// Make note of all directories we have to make and files that we have to copy.
paths := []string{}