Blame SOURCES/0001-switchroot-remount-Neuter-sysroot.readonly-for-now.patch

5a8509
From e35b82fb891daee823fcce421ae8f1442b630ea2 Mon Sep 17 00:00:00 2001
5a8509
From: Jonathan Lebon <jonathan@jlebon.com>
5a8509
Date: Wed, 20 May 2020 16:18:45 -0400
5a8509
Subject: [PATCH] switchroot/remount: Neuter sysroot.readonly for now
5a8509
5a8509
We're hitting issues with the read-only remounts racing with various
5a8509
services coming up. Let's neuter it for now until we rework how it
5a8509
works.
5a8509
5a8509
See: https://github.com/coreos/fedora-coreos-tracker/issues/488
5a8509
---
5a8509
 src/switchroot/ostree-remount.c | 5 ++++-
5a8509
 1 file changed, 4 insertions(+), 1 deletion(-)
5a8509
5a8509
diff --git a/src/switchroot/ostree-remount.c b/src/switchroot/ostree-remount.c
5a8509
index 326b104f..00e21296 100644
5a8509
--- a/src/switchroot/ostree-remount.c
5a8509
+++ b/src/switchroot/ostree-remount.c
5a8509
@@ -93,7 +93,10 @@ sysroot_is_configured_ro (void)
5a8509
   if (!g_key_file_load_from_file (keyfile, config_path, 0, NULL))
5a8509
     return false;
5a8509
 
5a8509
-  return g_key_file_get_boolean (keyfile, "sysroot", "readonly", NULL);
5a8509
+  if (g_key_file_get_boolean (keyfile, "sysroot", "readonly", NULL))
5a8509
+    puts ("Ignoring sysroot.readonly config; see https://github.com/coreos/fedora-coreos-tracker/issues/488.");
5a8509
+
5a8509
+  return false;
5a8509
 }
5a8509
 
5a8509
 int
5a8509
-- 
5a8509
2.25.4
5a8509