On Tue, Apr 17, 2012 at 12:03 PM, Tom Horsley <horsley1953@xxxxxxxxx> wrote: > On Tue, 17 Apr 2012 17:49:46 +0200 (CEST) Adam Pribyl wrote: >> >> The only reason I know is, that "people tend to modify grub.cfg manually", >> but with grub2 this is plain wrong anyway. Why do we support this messy >> setup then? > > Because the reverse is true - requiring a tool to modify grub.cfg > is plain wrong, modifying it manually is the only way to go. What > we should do is get rid of all the template files and grub2-mkconfig > and just ship grubby. (One of the prime reasons grub replaced lilo > was that you didn't have to remember to run some stupid tool after > editing your grub config, yet here is grub2 with a stupid tool > again - even stupider because it isn't actually necessary). As Adam's points out, we can't get rid of grub2-mkconfig. If new-kernel-pkg called grub2-mkconfig rather than grubby in cases where grub2's the bootloader, we wouldn't have the discrepancies between menuentry titles, default kernel, "linux" line arguments, and whether or not a "recovery" menuentry's generated. grub1 didn't have an upstream tool to update grub.conf, so grubby was needed. grub2 has grub2-mkconfig so we may as well use it - and patch it to suit our needs (for example, patch 10_linux to generate "Fedora <kernel>" menuentries rather than "Fedora Linux, with Linux <kernel>" menuentries). Regarding "modify grub.cfg manually": You should avoid doing so because your changes'll be wiped out should you run grub2-mkconfig. It's more practical to use 40_custom (or even create another "/etc/grub.d" file) to generate a full grub.cfg or simply menuentries. I have a rawhide VM where I've run "chmod -x /etc/grub.d/*" and created an executable 99_local: [root@rawbox ~]# cat /etc/grub.d/99_local #!/bin/sh cat <<EOF set default="0" set timeout="-1" terminal_output console menuentry '3.4.0-0.rc2.git3.1' { search --no-floppy --fs-uuid --set=root 258ee40a-a25e-4b44-9c6a-055c266e9665 linux /vmlinuz-3.4.0-0.rc2.git3.1.fc18.x86_64 root=/dev/mapper/vg-lv_root ro rd.dm=0 rd.luks=0 rd.lvm.lv=vg/lv_root rd.lvm.lv=vg/lv_swap rd.md=0 KEYTABLE=us LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 vga=794 initrd /initramfs-3.4.0-0.rc2.git3.1.fc18.x86_64.img } <two more kernels> EOF [root@rawbox ~]# -- test mailing list test@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test