File rename_ro_bootparam_to_readonly.patch of Package systemd.1059

From: Werner Fink <werenr@suse.de>
Date: Fri,  9 Oct 2013 13:28:43 +0000
Subject: Do not break already installed systemd out there

There are systems out there where "ro" is already in use!
Regardless if this is a bug or not, it is not an option to
break existing systems.

---
 src/remount-fs/remount-fs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- src/remount-fs/remount-fs.c
+++ src/remount-fs/remount-fs.c	2015-10-09 13:26:28.229518197 +0000
@@ -49,7 +49,7 @@ static int check_ro_from_cmdline(void) {
                 size_t l;
 
                 FOREACH_WORD_QUOTED(w, l, line, state) {
-                        if (l == 2 && memcmp(w, "ro", 2) == 0) {
+                        if (l == 8 && memcmp(w, "readonly", 8) == 0) {
                                 return 1;
                                 break;
                         }
openSUSE Build Service is sponsored by