Bug in romfs

Juan Cespedes (cespedes@lander.es)
Mon, 10 Feb 1997 10:49:58 +0100 (MET)


Well, I think it isn't a bug in romfs, but in msdos, but the
romfs code can't mount the root filesystem if the kernel is
compiled with both msdos and romfs support. The following patch fixes
this:

diff -ur linux-2.1.26/fs/filesystems.c linux-2.1.26-patched/fs/filesystems.c
--- linux-2.1.26/fs/filesystems.c Tue Jan 28 23:56:28 1997
+++ linux-2.1.26-patched/fs/filesystems.c Sat Feb 8 12:37:00 1997
@@ -54,6 +54,10 @@
init_minix_fs();
#endif

+#ifdef CONFIG_ROMFS_FS
+ init_romfs_fs();
+#endif
+
#ifdef CONFIG_UMSDOS_FS
init_umsdos_fs();
#endif
@@ -104,10 +108,6 @@

#ifdef CONFIG_UFS_FS
init_ufs_fs();
-#endif
-
-#ifdef CONFIG_ROMFS_FS
- init_romfs_fs();
#endif

mount_root();