[PATCH 1/2] Don't fatal_error if remounting root read-write fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As long as we can write to a few places (e.g. /etc, /var, /tmp) it's OK
if the root filesystem is readonly. Remove the fatal error if the mount
fails. Also clean up the mount call a bit - MS_MGC_VAL hasn't been
required since kernel 2.4...
---
 loader/init.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/loader/init.c b/loader/init.c
index 18ff83b..39bade0 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -767,9 +767,7 @@ int main(int argc, char **argv) {
     ret = setdomainname("", 0);
 
     printf("trying to remount root filesystem read write... ");
-    if (mount("/", "/", "ext2", MS_REMOUNT | MS_MGC_VAL, NULL)) {
-        fatal_error(1);
-    }
+    mount("/", "/", "remount", MS_REMOUNT, NULL);
     printf("done\n");
 
     /* we want our /tmp to be tmpfs, but we also want to let people hack
-- 
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux