25-akpm/init/do_mounts.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN init/do_mounts.c~CONFIG_SYSFS-boot-from-disk-fix init/do_mounts.c
--- 25/init/do_mounts.c~CONFIG_SYSFS-boot-from-disk-fix	Wed Nov 26 12:12:59 2003
+++ 25-akpm/init/do_mounts.c	Wed Nov 26 12:14:33 2003
@@ -141,9 +141,11 @@ dev_t name_to_dev_t(char *name)
 	dev_t res = 0;
 	int part;
 
+#ifdef CONFIG_SYSFS
 	sys_mkdir("/sys", 0700);
 	if (sys_mount("sysfs", "/sys", "sysfs", 0, NULL) < 0)
 		goto out;
+#endif
 
 	if (strncmp(name, "/dev/", 5) != 0) {
 		unsigned maj, min;

_