Messages in this thread | | | Date | Sun, 10 Mar 2002 17:42:17 -0700 | From | Richard Gooch <> | Subject | Blowing away devfs-created /dev/root |
| |
Hi, Al. Looking 2.4.19-pre2 I came across this in init/do_mounts.c: sys_chdir("/dev"); sys_unlink("root"); sys_mknod("root", S_IFBLK|0600, kdev_t_to_nr(ROOT_DEV));
(line 354 onwards). This will have the effect of blowing away the /dev/root symlink that is carefully created a few lines above. Is there a reason you did this, rather than something like: sys_chdir("/dev"); if (do_devfs) sys_mount("devfs", ".", "devfs", 0, NULL); else { sys_unlink("root"); sys_mknod("root", S_IFBLK|0600, kdev_t_to_nr(ROOT_DEV)); }
Regards,
Richard.... Permanent: rgooch@atnf.csiro.au Current: rgooch@ras.ucalgary.ca - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |