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 6D0271382C5 for ; Sun, 13 Jun 2021 04:07:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD4D3E0876; Sun, 13 Jun 2021 04:07:14 +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 170DBE0839 for ; Sun, 13 Jun 2021 04:07:11 +0000 (UTC) IronPort-SDR: 21eeZxER3t4LGHnC6zJTVAlUpFTWakl53KGOOUnGDnM5QlQxxoOyEx8LhZab8P+SDi0msFtATH uvXxjKxtmFCQ== IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AJtPnFauPtAIIJCB2QdiU7Ssp7skDE9V00z?= =?us-ascii?q?EX/kB9WHVpm+ij5qOTdZUgtSMc5wx9ZJhNo7q90cq7IE80l6Qa3WB5B97LNz?= =?us-ascii?q?UO01HGEGgN1+ff/wE=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FXCQAug8Vg/wvUbkFagQkJhUZsiHy?= =?us-ascii?q?EUIZaglsBgmeaIgsBAQEBAQEBAQFHAQIEAQGESgSCbiY4EwIEAQEBEgEBAQU?= =?us-ascii?q?BAQEBAQYEAgKBAIV1hw8cciJNE4V5qWmBNIEBhGSFMIE6ji1AgQlEhAmLLAS?= =?us-ascii?q?FUGKSCIwUnmgKgxwEgSMHnHOVA5BhvBaBfn0IgyRQGQ5WjR8BjxMoLzgCBgo?= =?us-ascii?q?BAQMJVwGJDQEB?= X-IPAS-Result: =?us-ascii?q?A2FXCQAug8Vg/wvUbkFagQkJhUZsiHyEUIZaglsBgmeaI?= =?us-ascii?q?gsBAQEBAQEBAQFHAQIEAQGESgSCbiY4EwIEAQEBEgEBAQUBAQEBAQYEAgKBA?= =?us-ascii?q?IV1hw8cciJNE4V5qWmBNIEBhGSFMIE6ji1AgQlEhAmLLASFUGKSCIwUnmgKg?= =?us-ascii?q?xwEgSMHnHOVA5BhvBaBfn0IgyRQGQ5WjR8BjxMoLzgCBgoBAQMJVwGJDQEB?= X-IronPort-AV: E=Sophos;i="5.83,270,1616472000"; d="scan'208";a="163690368" 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 00:07:10 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sun, 13 Jun 2021 00:07:27 -0400 From: "Walter Dnes" Date: Sun, 13 Jun 2021 00:07:27 -0400 To: Gentoo Users List Subject: [gentoo-user] Exact setting in grub to default to a kernel by name? Message-ID: 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 X-Archives-Salt: 8ba511e4-bf92-4fab-aa72-b3fc29947a12 X-Archives-Hash: 58f09700c7ff46f99f645ede0bf08a62 I have multiple (would you believe 2?) kernels in /boot. [x8940][waltdnes][~] ll /boot/vm* -rwxr-xr-x 1 root root 7046848 Jun 12 23:46 /boot/vmlinuz-experimental -rwxr-xr-x 1 root root 6986624 Jun 12 16:55 /boot/vmlinuz-production The grub kernel listing at bootup is - production kernel - production kernel recovery mode - experimental kernel - experimental kernel recovery mode The default is the first entry, i.e. "GRUB_DEFAULT=0" in /etc/default/grub. I prefer going with "experimental". If I screw up the config to the point where it can't boot, then I'll manually override to "production". The simple way of getting the third entry as default is "GRUB_DEFAULT=2" (remember to count from zero). This works for now. But what happens if/when I add more kernels for whatever reason? 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? -- Walter Dnes I don't run "desktop environments"; I run useful applications