kernel: we should go back to the ro default not change to rw on mount fail
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 19:56:23 +0000 (19:56 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 19:56:23 +0000 (19:56 +0000)
Otherwise if you hit enter then type in the fs name you get a r/w mount
unexpectedly

Kernel/start.c

index 56d0c49..e10cdfa 100644 (file)
@@ -393,7 +393,7 @@ void fuzix_main(void)
             /* reset potentially altered state before prompting the user for command line again */
             progptr = old_progptr;
             argptr = old_argptr;
-            ro = 0;
+            ro = MS_RRDONLY;
         }
 
        root = i_open(root_dev, ROOTINODE);