[klibc] mkrootdev utility
H. Peter Anvin
hpa at zytor.com
Tue Apr 11 07:51:14 PDT 2006
Olaf Hering wrote:
> On Tue, Apr 11, Aaron Griffin wrote:
>
>
>> + return create_dev("/dev/root", rootdev);
>
> That always bothered me. Cant you give it just the kernel name?
>
If there is a name known to the kernel (rather, kinit), this can be
done, but if you specify "root=302" or something like that, that would
at the very least mean searching through the entire sysfs in the hope of
finding a name.
I'm not philosophically opposed to changing it, but I'm a bit scared of
doing anything that could cause incompatibilities with the 2^n boot
setups out there until klibc has been merged. Maybe that's cargo cult
programming, but it seems safer to consider that change later.
-hpa
More information about the klibc
mailing list