From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5F4FA158B20 for ; Mon, 03 Feb 2025 17:41:21 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 4A383343007 for ; Mon, 03 Feb 2025 17:41:21 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4A5DE1103B6; Mon, 03 Feb 2025 17:41:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 4019B1103B6 for ; Mon, 03 Feb 2025 17:41:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E633B341465 for ; Mon, 03 Feb 2025 17:41:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 82A63181E for ; Mon, 03 Feb 2025 17:41:18 +0000 (UTC) From: "Nowa Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nowa Ammerlaan" Message-ID: <1738604468.e03e86a9176afd40ced90c3830a7ab3a4ad40dcb.nowa@gentoo> Subject: [gentoo-commits] data/gentoo-news:master commit in: 2025-02-03-dracut-hostonly/ X-VCS-Repository: data/gentoo-news X-VCS-Files: 2025-02-03-dracut-hostonly/2025-02-03-dracut-hostonly.en.txt X-VCS-Directories: 2025-02-03-dracut-hostonly/ X-VCS-Committer: nowa X-VCS-Committer-Name: Nowa Ammerlaan X-VCS-Revision: e03e86a9176afd40ced90c3830a7ab3a4ad40dcb X-VCS-Branch: master Date: Mon, 03 Feb 2025 17:41:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bc3cb29e-cc19-4e21-86f8-6013ffdb2148 X-Archives-Hash: 2d5cd32c78f9ed48d1dacf25b067d9a9 commit: e03e86a9176afd40ced90c3830a7ab3a4ad40dcb Author: Nowa Ammerlaan gentoo org> AuthorDate: Mon Feb 3 17:41:08 2025 +0000 Commit: Nowa Ammerlaan gentoo org> CommitDate: Mon Feb 3 17:41:08 2025 +0000 URL: https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=e03e86a9 2025-02-03-dracut-hostonly: new news item Signed-off-by: Nowa Ammerlaan gentoo.org> .../2025-02-03-dracut-hostonly.en.txt | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/2025-02-03-dracut-hostonly/2025-02-03-dracut-hostonly.en.txt b/2025-02-03-dracut-hostonly/2025-02-03-dracut-hostonly.en.txt new file mode 100644 index 0000000..9dc03b3 --- /dev/null +++ b/2025-02-03-dracut-hostonly/2025-02-03-dracut-hostonly.en.txt @@ -0,0 +1,66 @@ +Title: Dracut changed default for hostonly setting +Author: Nowa Ammerlaan +Posted: 2025-02-03 +Revision: 1 +News-Item-Format: 2.0 +Display-If-Installed: sys-kernel/installkernel[dracut] + +Dracut is an initramfs generation tool. It may be invoked via the +installkernel mechanism in order to automatically generate a new +initramfs when the kernel is installed. If you are reading this then +sys-kernel/installkernel is configured to use Dracut and the below is +relevant for you. + +What changed? +==================== + +Starting with version 106 of sys-kernel/dracut the default for the +"hostonly" setting has changed from disabled to enabled when Dracut is +invoked via installkernel[1]. + +"hostonly" is a setting for Dracut that controls how much is included +in the generated initramfs image. When it is disabled Dracut aims to +generate an initramfs image that is bootable on any hardware. On the +other hand, when this setting is enabled, Dracut aims to generate an +initramfs image containing only what is needed to boot the current +system. The advantage is a significantly smaller initramfs images, +but this comes with the cost of losing portability. + +Example: When the "hostonly" setting is disabled, Dracut's drm module +will cause all GPU drivers to be included in the initramfs. When it is +enabled, only the drivers for GPUs that are currently present in the +system are included in the initramfs. + +Enabling the "hostonly" setting was and is our recommendation for most +use cases. This however was not the default behaviour in versions +prior to 106. + +Note, the default value for the "hostonly" setting has changed only +when Dracut is invoked via installkernel. Disabled remains the default +behaviour when Dracut is invoked directly. + +User Action Required +==================== + +If your system is already configured to enable "hostonly" setting via +/etc/dracut.conf.d/ then effectively nothing has changed for you. + +However, if Dracut has previously not been configured to enable the +"hostonly" setting, then starting with version 106 the behaviour of +Dracut will change for you. Though we do not expect major problems, we +recommend ensuring a backup booting option remains available before +rebooting the system after the first kernel upgrade following the +upgrade of Dracut. This is usually the case unless the old kernels are +manually removed by the user. + +If you do experience a booting problem with the "hostonly" enabled +initramfs images, then please report this problem to Dracut[2]. + +The "hostonly" setting may be disabled via /etc/dracut.conf.d/ +configuration snippets. For example: + + echo "hostonly=no" >> /etc/dracut.conf.d/95-no-hostonly.conf + + +[1] https://github.com/dracut-ng/dracut-ng/pull/1158 +[2] https://github.com/dracut-ng/dracut-ng/issues