make 2.5.49 mount root again for devfs users
PATCH 1/1 make 2.5.49 mount root again for devfs users
init/do_mounts.c changed in 2.5.48, and booting with devfs (and without initial ramdisk) has been impossible since then. I experimented with do_mounts undoing the early devfs mount. Devfs is mounted later anyway.
Feel free to test, but be warned that I am not an expert on this part of the kernel. This made 2.5.49 work for me though. I hope someone can comment on this. If it isn't "the right way" please tell what is.
Helge Hafting
do_mounts.c 2002-11-25 13:34:58.000000000 +0100 renamed from do_mounts.c.original 2002-11-25 12:41:48.000000000 +0100 +1 -4
@@ -846,10 +846,7 @@ { int is_floppy; -#ifdef CONFIG_DEVFS_FS - sys_mount("devfs", "/dev", "devfs", 0, NULL); - do_devfs = 1; -#endif + md_run_setup();
What you did was bypass devfs, and cause create_dev to mknod a file with the device number of your root instead of creating a symlink to the normal devfs node.
Is your booter translating the device name into a number? You can check this by looking at the printed comand line in the dmesg, or by cat /proc/cmdline .
If you see root=0304 then your booter is translating the device number and therefore find_in_devfs is failing (possibly because of the previously metioned patch to read_dir).
I notice that there are lots of hardcoded maxdepth of 64 characters for the devfs path, but yours seems to be 39 and therefore should be ok.
milton