Grub2
John Reiser
jreiser at bitwagon.com
Sun Dec 9 18:49:58 UTC 2012
On 12/09/2012 10:06 AM, Ian Pilcher wrote:
> Actually, grubby in Fedora is still perfectly capable of updating the
> old grub.conf. To set this up, create a symlink:
>
> # ln -s /boot/grub/grub.conf /etc
>
> And create /etc/sysconfig/kernel:
>
> # UPDATEDEFAULT specifies if new-kernel-pkg should make
> # new kernels the default
> UPDATEDEFAULT=yes
>
> # DEFAULTKERNEL specifies the default kernel package type
> DEFAULTKERNEL=kernel
>
> Easy peasy
No, it's not "easy peasy". It's arguably incorrect on i686
with more than 3GB of RAM, where DEFAULTKERNEL=kernel-PAE
probably should be used. In any case it's incomplete
because it omits important documentation of this choice.
A comment should indicate which piece(s) look at the file:
# This file is consulted by /usr/sbin/new-kernel-pkg
# as part of installing a new Linux kernel.
Also, the "ln -s" could be improved:
# (cd /etc; ln -s ../boot/grub/grub.conf grub.conf)
The path should be relative, and naming the last component
redundantly as the last argument makes it clear that a new
path /etc/grub.conf resolves to ../boot/grub.grub.conf.
--
More information about the devel
mailing list