From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 21A2D138334 for ; Tue, 9 Jul 2019 19:53:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98641E084A; Tue, 9 Jul 2019 19:53:34 +0000 (UTC) Received: from blaine.gmane.org (195-159-176-226.customer.powertech.no [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED5D7E070D for ; Tue, 9 Jul 2019 19:53:33 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hkwBA-000JAI-7R for gentoo-user@lists.gentoo.org; Tue, 09 Jul 2019 21:53:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Human configurable boot loader, OR useful grub2 documentation Date: Tue, 9 Jul 2019 19:53:23 -0000 (UTC) Message-ID: References: <5a75d07f-811f-4747-a91a-209cd4eef86e@www.fastmail.com> <20190709171723.tc4rzcsr6z2uvzwq@matica.foolinux.mooo.com> User-Agent: slrn/1.0.3 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 699f0414-ff22-4244-ad76-763b31f8e697 X-Archives-Hash: b913963b1c73c306b4c7da6ad3f160c1 On 2019-07-09, Ian Zimmerman wrote: > On 2019-07-05 14:25, Grant Edwards wrote: > >> -----------------------------grub.cfg------------------------------ >> timeout=10 >> root=hd0,1 >> >> menuentry 'vmlinuz-4.19.52-gentoo' { >> linux /boot/vmlinuz-4.19.52-gentoo root=/dev/sda1 >> } >> >> menuentry 'vmlinuz-4.14.83-gentoo' { >> linux /boot/vmlinuz-4.14.83-gentoo root=/dev/sda1 >> } >> ------------------------------------------------------------------- >> >> I shudder when I contrast that with many hundreds of lines of cruft >> that the mkconfig system would generate. > > This is an overstatement To be fair, I should state that I've never used the autoconfig stuff on that particular system. When I converted from grub-legacy to grub2, I just translated the old grub config file to the new syntax. > matica!2 ~$ wc -l /boot/grub/grub.cfg > 148 /boot/grub/grub.cfg That's still a 15:1 ratio. It appears that Gentoo is a better than some other distros. On a fairly simple Ubuntu server system with 3 kernel versions: wc -l /boot/grub/grub.cfg 265 /boot/grub/grub.cfg On other distros/machines I've often seen double or triple that using the installation defaults. You _really_ don't want to see the auto generated grub.cfg files on a machine with a dozen different linux installations, each with several kernels. Unless you disable the OS probing module, it gets bad. > 2 kernels, no initrd, just like yourself. > > Maybe you do need to take a look at /etc/default/grub ? If you spend some time tuning things in /etc/default/grub, it gets better. But, for my Gentoo systems I still find it far less work to just create a grub.cfg file manually. The semantics of /etc/default/grub also seem to vary to an annoying extent between distros and versions. The semantics of grub.cfg seem to be far more stable. -- Grant Edwards grant.b.edwards Yow! Were these parsnips at CORRECTLY MARINATED in gmail.com TACO SAUCE?