[klibc] mkrootdev utility
Aaron Griffin
aaronmgriffin at gmail.com
Tue Apr 11 08:27:54 PDT 2006
On 4/11/06, Olaf Hering <olh at suse.de> 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?
In addition to HPA's response, I always found it kind of like a
shortcut. Firstly, the /dev nodes generally won't persist on to
userspace, so the naming is arbitrary. Secondly, it seems easier, in
my eyes, to check for an existing /dev/root node rather than checking
some $ROOT environment variable (whoops, it's numeric, thanks vmware -
/dev/303 doesn't exist... time to parse that out) - by this, I am
implying some sort of /init script with minimal error checking before
calling kinit (echo "Error: Root device not found...").
More information about the klibc
mailing list