> In message <[EMAIL PROTECTED]>, Harti Brandt write
> s:
> >the check for rootdev != NODEV introduced in rev 1.88 breaks loading of
> >kernel modules from an NFS mounted root in diskless configurations.
> >Dropping in gdb and printing rootdev shows -1 which is, I assume, NODEV.
>
> Ah, that would explain a problem I saw recently on a netbooted box
> where kldload only worked with full module paths. Could `rootvnode'
> be checked for NULL instead?
Hi,
The intent is to discover whether there's a filesystem yet (vn_open()
will die horribly otherwise).
My use of rootdev is (obviously) flawed. AFAICT, either rootvp
or rootvnode should be used, but I can't tell the difference between
the two at a glance and am lacking development resources right now
(my development box seems to enjoy dropping cores too frequently to
build a kernel at the moment).
If somebody could test that rootvnode or rootvp are non-NULL after
an NFS-mounted root is set up, I'd thankfully approve the quick
fix... :*)
Cheers.
> Ian
--
Brian <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message