[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#270326: kernel-image-2.6.8-powerpc: bad commandline default: root=/dev/sda2



On Mon, Sep 06, 2004 at 11:47:38PM +0200, Jens Schmalzing wrote:
> Hi,
> 
> Hollis Blanchard writes:
> 
> > The default kernel commandline in the PReP kernel includes
> > "root=/dev/sda2".  Please remove this.
> 
> Well, this was selected because it is the default from
> arch/ppc/Kconfig.  While it is not the ideal solution, I think it
> should stay enabled for the time being, because it can easily be

Jens, if the kernel is able to figure out the correct root device, then why is
it still needed to include this as a kernel boot arg ? 

The other and cleaner idea would be for mkvmlinuz to recompile the
simple/<whatever>.o object file from clean source, with the correct value of
CONFIG_CMDLINE. This would imply a dependency of mkvmlinuz to a gcc, but as we
pull in binutils anyway, i doubt it would make much of a difference. Maybe it
can be a suggest or recommend until dpkg gains subarch conditionals.

That said, maybe some elf magic on said .o could do the trick, which would
maybe not need a full compiler suite, but may work with binutils alone ?

Notice that chrp and other openfirmware based kernels will not (yet) use the
bootloader objects to set the default command line options, altough this may
be changed if we go the above route.

Friendly,

Sven Luther



Reply to: