overwriting module params given on kernel command line?

From: Michael Tokarev
Date: Sun Jan 22 2012 - 04:24:47 EST


Hello.

I noticed that recent kernels does not allow overwriting
module parameters given on kernel command line anymore.

One particular example of this is ipv6.disable. I usually
boot kernel with ipv6.disable=1, because all these systems
does not have ipv6 connectivity anyway and v6 isn't needed.
But I remember that in earlier versions it was possible to
specify this parameter in modprobe line:

rmmod ipv6; modprobe ipv6 disable=0

and v6 were enabled after this reload (rmmod is possible
while it is disabled). It works in, at least, 2.6.32
kernels.

But now, in 3.0, the modprobe command line parameter appears
to be ignored and the one specified on _kernel_ command
line takes precedence.

To me, it does not look right, I'd expect modprobe command
line to be "stronger" than kernel command line.

So, am I right that kernel command line has more "weight"
here, and if yes, why?

Thanks,

/mjt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/