Re: New debconf template for the linux package
On Wed, Jul 16, 2014 at 09:47:05AM +0100, Justin B Rye wrote:
> victory wrote:
> > +Template: linux-image-@abiname@@localversion@/postinst/mips-initrd-@abiname@@localversion@
> > +Type: note
> > +_Description: Boot loader configuration must be updated to load initramfs
> > + This kernel package will build an "initramfs" file
> > + (/boot/initrd.img-@abiname@) for the boot loader to use in
> > + addition to the kernel itself. This method, formerly unsupported
> > + on MIPS, enables a more flexible boot process, and future kernel
> > + versions may require a corresponding initrd.img to boot.
> > + .
> > + The currently running kernel has been booted without an initramfs.
> > + You should reconfigure your boot loader to load the initramfs for
> > + Linux version @abiname@ and for each later version. To achieve that
> > + you might use the initrd.img symlink created by this kernel.
> ^^
> It isn't strictly the kernel that creates the symbolic link, is it?
You are correct. "by this kernel package" would probably be better.
> I know nothing about the MIPS boot loader (u-boot?), but if it is
> already likely to be pointing at the kernel by way of a symlink,
> maybe:
The bootloader varies from system to system, it could be sibyl, arcboot,
pmon, u-boot or grub.
> The currently running kernel was booted without an initramfs. You
> should reconfigure the boot loader to load the initramfs for Linux
> version @abiname@, and for each later version. This is probably
> most easily accomplished by using the /initrd.img symbolic link
> maintained by the kernel package.
That looks indeed better that way, thanks.
> (Or if the links might be elsewhere, drop the leading /?)
Yes, we should drop the leading /, as it depends on the bootloader, and
sometimes depending on how the partitions are configured. Basically it
should be done the same way than the kernel.
>
> Alternatively, if until now the bootloader has probably been pointing
> directly at /boot/vmlinuz-*, maybe:
>
> The currently running kernel was booted without an initramfs. You
> should reconfigure the boot loader to load the initramfs for Linux
> version @abiname@, and for each later version. (This maintenance
> can be simplified by using the /vmlinuz and /initrd.img symbolic
> links maintained by the kernel package.)
Nothing has changed for the vmlinuz symlink, so we probably don't want
to talk about it, so that people do not mix things.
> Except that wait, does u-boot use /vmlinuz or a special uimage? Is it
> even u-boot I should be googling? Oops, I'd better resend this CCing
> the people who might be able to answer...
To answer your question, on cavium octeons machines u-boot can directly
use the kernel in vmlinuz format.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
Reply to: