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 E97441382C5 for ; Sun, 13 Jun 2021 13:33:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF87BE0B50; Sun, 13 Jun 2021 13:33:41 +0000 (UTC) Received: from pmta31.teksavvy.com (pmta31.teksavvy.com [76.10.157.38]) (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 3774AE0B19 for ; Sun, 13 Jun 2021 13:33:41 +0000 (UTC) IronPort-SDR: Wr8wlbEwfl7wQ3aKtlXD88qJxaUBvWSWgKeHhY4vU7/OIT2GD5L1wKzTrWrc1wqPJshlEA+HN/ +eu98L5f8q8Q== IronPort-HdrOrdr: =?us-ascii?q?A9a23=3ACs+xTq1OKqXjcrFYQFlJGgqjBIkkLtp133?= =?us-ascii?q?Aq2lEZdPUzSL3hqynOpoVj6faQsl19ZJhOo6HmBEDtewK4yXcN2+cs1NSZLW?= =?us-ascii?q?vbUQmTTb2KhLGKq1eNdBEWndQts5uIHZIObOEZRjBB/L3HCU2DYrUdKITsys?= =?us-ascii?q?CVuds=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EqBgAvCMZg/wvUbkFaHgEBCxIMQAm?= =?us-ascii?q?BQwuDIlZsiHyEUIZaglsBmw2BfAsBAQEBAQEBAQE+CQECBAEBBIRGBAICgmo?= =?us-ascii?q?mNAkOAgQBAQESAQEBBQEBAQEBBgQCAoEAhWgNhFwsAQ1SZwY6HDMLNBIQRxm?= =?us-ascii?q?CcoMHD6k6gTSBAYNLAYEYhScGgTqNakNAgQlEhAkvPoJiAYIuhS4Eg3U1LIF?= =?us-ascii?q?daJEgjBSeaAqDHIEnB5xzlQOQYbt/ghV9CIJwATNQGQ5WkTmKeigvOAIGCgE?= =?us-ascii?q?BAwlXAYkPAQE?= X-IPAS-Result: =?us-ascii?q?A2EqBgAvCMZg/wvUbkFaHgEBCxIMQAmBQwuDIlZsiHyEU?= =?us-ascii?q?IZaglsBmw2BfAsBAQEBAQEBAQE+CQECBAEBBIRGBAICgmomNAkOAgQBAQESA?= =?us-ascii?q?QEBBQEBAQEBBgQCAoEAhWgNhFwsAQ1SZwY6HDMLNBIQRxmCcoMHD6k6gTSBA?= =?us-ascii?q?YNLAYEYhScGgTqNakNAgQlEhAkvPoJiAYIuhS4Eg3U1LIFdaJEgjBSeaAqDH?= =?us-ascii?q?IEnB5xzlQOQYbt/ghV9CIJwATNQGQ5WkTmKeigvOAIGCgEBAwlXAYkPAQE?= X-IronPort-AV: E=Sophos;i="5.83,271,1616472000"; d="scan'208";a="163706192" Received: from 65-110-212-11.cpe.pppoe.ca (HELO waltdnes.org) ([65.110.212.11]) by smtp13.teksavvy.com with SMTP; 13 Jun 2021 09:33:39 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sun, 13 Jun 2021 09:33:57 -0400 From: "Walter Dnes" Date: Sun, 13 Jun 2021 09:33:57 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] 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: 7764b5bd-7407-4992-af64-b75366fda731 X-Archives-Hash: c57d54e863c0d4e8afbaa74a69a4f3a6 On Sun, Jun 13, 2021 at 06:46:15AM +0200, Hund wrote > >Let me rephrase the question more generally... given a > >kernel "/boot/vmlinuz-fubar" how and where do I specify it by name as > >the default boot kernel? > > What about this? > > https://www.stephenrlang.com/2017/06/setting-default-kernel-in-grub2/ Is /boot/grub/grub.cfg the file that actually controls bootup, and is all 154 lines of verbosity really necessary? For menu entries I see... ===================================================================== menuentry 'Gentoo GNU/Linux, with Linux production' --class blah blah blah { blah blah blah set root='hd0,gpt1' linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Gentoo GNU/Linux, with Linux production (recovery mode)' --class blah blah blah { blah blah blah set root='hd0,gpt1' linux /vmlinuz-production root=/dev/sda2 ro single } menuentry 'Gentoo GNU/Linux, with Linux experimental' --class blah blah blah { blah blah blah set root='hd0,gpt1' linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Gentoo GNU/Linux, with Linux experimental (recovery mode)' --class blah blah blah { blah blah blah set root='hd0,gpt1' linux /vmlinuz-experimental root=/dev/sda2 ro single } ===================================================================== I'd be tempted to do a manual gub.cfg if I had documentation. -- Walter Dnes I don't run "desktop environments"; I run useful applications