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 0969613835A for ; Mon, 15 Feb 2021 06:01:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C60DE0B0A; Mon, 15 Feb 2021 06:01:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 0165FE0B0A for ; Mon, 15 Feb 2021 06:01:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B572433BDE5 for ; Mon, 15 Feb 2021 06:01:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21A8F495 for ; Mon, 15 Feb 2021 06:01:19 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1613368307.c4e6b09c79f33303f749b2b40af51a01f168971f.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/linuxrc X-VCS-Directories: defaults/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: c4e6b09c79f33303f749b2b40af51a01f168971f X-VCS-Branch: master Date: Mon, 15 Feb 2021 06:01:19 +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: f7e2dd03-3949-4eca-935b-771916ad1ef5 X-Archives-Hash: b0f47532abdb84c93558e709726f586e commit: c4e6b09c79f33303f749b2b40af51a01f168971f Author: Thomas Deutschmann gentoo org> AuthorDate: Mon Feb 15 04:34:57 2021 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon Feb 15 05:51:47 2021 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c4e6b09c linuxrc: load btrfs module manually There is no trigger/rule in UDEV/btrfs-progs to load btrfs module. The only known trigger via mount command could be too late or is maybe insufficient depending on used BTRFS {meta,}data profile. Bug: https://bugs.gentoo.org/739892 Signed-off-by: Thomas Deutschmann gentoo.org> defaults/linuxrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/defaults/linuxrc b/defaults/linuxrc index d8fee73..222dd35 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -535,6 +535,14 @@ then FIRSTMODS="${FIRSTMODS} crc32_generic" fi +if [ "${ROOTFSTYPE}" = "btrfs" -o -x /sbin/btrfs ] +then + # We have no mechanism to trigger btrfs module loading before UDEV's btrfs builtin + # will run; In addition, loading btrfs via UDEV could cause problems for slow + # machines, see https://github.com/dracutdevs/dracut/issues/658 + FIRSTMODS="${FIRSTMODS} btrfs" +fi + splash 'init' cmdline_hwopts