switchroot/remount: Neuter sysroot.readonly for now
authorJonathan Lebon <jonathan@jlebon.com>
Wed, 20 May 2020 20:18:45 +0000 (16:18 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Wed, 20 May 2020 20:23:59 +0000 (16:23 -0400)
We're hitting issues with the read-only remounts racing with various
services coming up. Let's neuter it for now until we rework how it
works.

See: https://github.com/coreos/fedora-coreos-tracker/issues/488

src/switchroot/ostree-remount.c

index 326b104f038c935388eb08b3a4fe74aaa64584d6..00e2129665f3228f834e903cb10d1e360275fa97 100644 (file)
@@ -93,7 +93,10 @@ sysroot_is_configured_ro (void)
   if (!g_key_file_load_from_file (keyfile, config_path, 0, NULL))
     return false;
 
-  return g_key_file_get_boolean (keyfile, "sysroot", "readonly", NULL);
+  if (g_key_file_get_boolean (keyfile, "sysroot", "readonly", NULL))
+    puts ("Ignoring sysroot.readonly config; see https://github.com/coreos/fedora-coreos-tracker/issues/488.");
+
+  return false;
 }
 
 int