lkml.org 
[lkml]   [2002]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] root kernel option with devfs

The "root=" kernel option doesn't work when used together with devfs
device names, e.g. root=/dev/discs/disc0/part1. It appears as if the
string "discs/disc0/part1" will incorrectly be interpreted as a
hex-number, which results in a kernel panic "VFS: Unable to mount root fs
on ...". This has been broken since 2.4.19.

This patch has been submitted to lkml before (don't remember by who), and
I've only been updated it to apply cleanly on 2.4.20-pre10. It would be
very nice if this problem was solved before 2.4.20 was released.

/Per


--- linux-2.4.20-pre10/init/do_mounts.c.old 2002-10-09 23:04:59.000000000 +0200
+++ linux-2.4.20-pre10/init/do_mounts.c 2002-10-09 23:50:46.000000000
+0200
@@ -258,6 +258,8 @@
}
dev++;
} while (dev->name);
+ if (!(dev->name))
+ return to_kdev_t(0);
}
return to_kdev_t(base + simple_strtoul(line,NULL,base?10:16));
}
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.023 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site