From: Alan Cox Date: Sat, 19 Jan 2019 19:56:23 +0000 (+0000) Subject: kernel: we should go back to the ro default not change to rw on mount fail X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2ea8d6e692e2fdefb878cbd1a5bb3b8dcfb89ba6;p=FUZIX.git kernel: we should go back to the ro default not change to rw on mount fail Otherwise if you hit enter then type in the fs name you get a r/w mount unexpectedly --- diff --git a/Kernel/start.c b/Kernel/start.c index 56d0c491..e10cdfa7 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -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);