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 D23B31382C5 for ; Sun, 13 Jun 2021 22:57:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 684D3E08FF; Sun, 13 Jun 2021 22:57:33 +0000 (UTC) Received: from pmta11.teksavvy.com (pmta11.teksavvy.com [76.10.157.34]) (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 09B29E085E for ; Sun, 13 Jun 2021 22:57:32 +0000 (UTC) IronPort-SDR: u0BvrnczifWX0IpcEA6eqdGr+5Bax02l+fQIBl8myPrhEm6d6DOl+D1GDbd4eGTSgNwcKrk66h YtI0Ah2v1VXA== IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AnyvZpq5LrBzAO7Xo0wPXwDPXdLJyesId70?= =?us-ascii?q?hD6qkRc20pTiX8rauTdZsguiMd9F0qKRUdcLy7SdG9qA3nlKKdkLNhR4tKNT?= =?us-ascii?q?OO0AeVxedZnO3fKlXbak7DH8Fmu5uIGJIOc+EYY2IK9PrS0U2TG9I4yNmI9+?= =?us-ascii?q?SJiI7lvhJQZDAvRK1t4gxwAATeMkAefnglOXJwfKD32iIMzwDMRZz2Bv7aOl?= =?us-ascii?q?A1G8zOvcfCmp6jQRNuPW9B1DWz?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FXBgDWjMZg/wvUbkFaHgEBCxIMQAm?= =?us-ascii?q?BQwuDIlZsiHyEUIZZgiADOAGbDYF8CwEBAQEBAQEBAUAHAQIEAQEDA4FWgm4?= =?us-ascii?q?EAgKCaiY0CQ4CBAEBARIBAQEFAQEBAQEGBAICgQCFaA2DVoEIAQEBAQEBAQE?= =?us-ascii?q?BAQEBAQEBAQEBARYCDVJnAQU6HDMLGBwSEEcZgnKDBw+qPYE0gQGEZIUjBoE?= =?us-ascii?q?6jWpDQIEJRIQJLz6CYgMBgRiGQQSDSyg1KgKBXmeRIIwUnmgKgxyBJwecc5U?= =?us-ascii?q?DkGG7f4IVfQiDJFAZDlaWTYVmKC8CNgIGCgEBAwlXAYkEAQE?= X-IPAS-Result: =?us-ascii?q?A2FXBgDWjMZg/wvUbkFaHgEBCxIMQAmBQwuDIlZsiHyEU?= =?us-ascii?q?IZZgiADOAGbDYF8CwEBAQEBAQEBAUAHAQIEAQEDA4FWgm4EAgKCaiY0CQ4CB?= =?us-ascii?q?AEBARIBAQEFAQEBAQEGBAICgQCFaA2DVoEIAQEBAQEBAQEBAQEBAQEBAQEBA?= =?us-ascii?q?RYCDVJnAQU6HDMLGBwSEEcZgnKDBw+qPYE0gQGEZIUjBoE6jWpDQIEJRIQJL?= =?us-ascii?q?z6CYgMBgRiGQQSDSyg1KgKBXmeRIIwUnmgKgxyBJwecc5UDkGG7f4IVfQiDJ?= =?us-ascii?q?FAZDlaWTYVmKC8CNgIGCgEBAwlXAYkEAQE?= X-IronPort-AV: E=Sophos;i="5.83,272,1616472000"; d="scan'208";a="166243380" Received: from 65-110-212-11.cpe.pppoe.ca (HELO waltdnes.org) ([65.110.212.11]) by smtp11.teksavvy.com with SMTP; 13 Jun 2021 18:57:31 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sun, 13 Jun 2021 18:57:49 -0400 From: "Walter Dnes" Date: Sun, 13 Jun 2021 18:57:49 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Exact setting in grub to default to a kernel by name? Message-ID: References: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Archives-Salt: b0dbf479-87ef-48b7-919f-0d04502d2773 X-Archives-Hash: d2d396f15aa45e628c1797e1bed61119 On Sun, Jun 13, 2021 at 05:38:53PM -0000, Grant Edwards wrote > On 2021-06-13, Walter Dnes wrote: > > > I'd be tempted to do a manual gub.cfg if I had documentation. > > I gave up on the grub2 auto-magical config system many years ago. My > grub.cfg is typically 10-20 lines long. The documentation is at > > https://www.gnu.org/software/grub/manual/grub/grub.html > > For manual confiuration: see section 6: > > https://www.gnu.org/software/grub/manual/grub/html_node/Configuration.html#Configuration When experimenting with this, I'll backup grub.cfg. If things go awry, boot with the USB key I used for the install, and copy back the old known working grub.cfg. I've done a first crack at this. I assume that nothing in /etc/default/grub will have any effect. Questions... 1) Is "insmod extfs3" necessary? I've built extfs3 into the kernels. 2) I assume that the the first "menuentry" will be the default boot? 3) Is the default timeout still 5 seconds? 3) I assume that 640x480 is supported on just about every monitor out there. I want as large text as possible. My eyes are getting old... just like me. Any obvious errors in the following grub.cfg? ===================================================================== menuentry 'Linux Experimental' --class gnu-linux { set gfxpayload=640x480 insmod ext3fs set root='hd0,gpt1' linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Linux Experimental Recovery' --class gnu-linux { set gfxpayload=640x480 insmod ext3fs set root='hd0,gpt1' linux /vmlinuz-experimental root=/dev/sda2 ro } menuentry 'Linux Production' --class gnu-linux { set gfxpayload=640x480 insmod ext3fs set root='hd0,gpt1' linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Linux Production Recovery' --class gnu-linux { set gfxpayload=640x480 insmod ext3fs set root='hd0,gpt1' linux /vmlinuz-production root=/dev/sda2 ro } ===================================================================== Something that occured to me. Can I move the duplicated lines to the top of the file and take them out of the menuentries? E.g. ===================================================================== set gfxpayload=640x480 insmod ext3fs set root='hd0,gpt1' menuentry 'Linux Experimental' --class gnu-linux { linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Linux Experimental Recovery' --class gnu-linux { linux /vmlinuz-experimental root=/dev/sda2 ro } menuentry 'Linux Production' --class gnu-linux { linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Linux Production Recovery' --class gnu-linux { linux /vmlinuz-production root=/dev/sda2 ro } ===================================================================== -- Walter Dnes I don't run "desktop environments"; I run useful applications