From patchwork Mon Aug 29 14:21:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1671482 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=4pASUSQo; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=gwyZibzU; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MGXkf00dyz1yh5 for ; Tue, 30 Aug 2022 00:24:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=r8kwvK2Ah3uHN7I0+RmbbrwNBsEi48uXAotQhPpdIkE=; b=4pASUSQoYd99B0 AmQLSGX/ZUqRoZMfKNYAxVW7+uQbxNkXcaw6spWQ48vewokHfOBIIMlGDWMTt+2kGfKrqt7GdULy/ m9yLtS2Ge6sbpd6bkf2JvjLxDnX/QhgHt9aEUk8x6/+TC8UYu4vOSSuaAp1mmqQ1ZMpXa0pHlpFFW IFgeEdF20xWi46s5oc4itorIRjcCjFujnkMwMTbIMOTKoH4JkvqOaHz39eHJ4M2ATP5XVsOCfuDSK DPlC+0wozHCWOsGLxCGSJJsVSR4D2i4DVo7fcTXKRswfyafzOlrpQNRwPYDLKOZ5jN4yRQM1bl3yl Zv3PV7ruINpAfQZaqyIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSfec-00B3km-6C; Mon, 29 Aug 2022 14:22:18 +0000 Received: from mail.terefe.re ([2a04:52c0:101:a4a:0:ffff:5ff:60c8]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSfeW-00B3ic-VA for openwrt-devel@lists.openwrt.org; Mon, 29 Aug 2022 14:22:14 +0000 Received: from localhost.localdomain (unknown [212.106.161.60]) by mail.terefe.re (Postfix) with ESMTPSA id C55F720AC4; Mon, 29 Aug 2022 16:22:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1661782923; bh=/S5RfGRuWllAeeKCLSwaSXCVKcr6hBWaD2ifZjs1XZw=; h=From:To:Cc:Subject:Date:From; b=gwyZibzUA4AGwtkKv+j69jIGZJmPQEp2Bv0/WePz91CPIy4cqxxYuUf1oTszDVBkA os8vKRNxOdgH2JwbESwjm9XYgP/EPT+23U9bYYjBrXfWUbjNGw25wOkh5s/BezGowz NIzbg+xLJwSeJ+kptLQYEyvFBGvh0vdiwY3fqGin9T3Kwb4PsD4eqc7GqXPSz+78c+ xkxRGAEUG5oBsxIRJLBSBMmgDqiz5OZVQ3G/WR4sIz/Gi5P6mV2fM0cEh9Y8vbp+9D hssCM3gnkR3J4HIRWBVv9LaW4VkqnsMTrbBzUPwEqEy4AhyPngtp4HUAeTg/VRaHFA 6lbBFoobsjdVw== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH] kernel: load loop driver before creating overlay Date: Mon, 29 Aug 2022 16:21:52 +0200 Message-Id: <20220829142152.13352-1-tmn505@terefe.re> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220829_072213_466957_77C4EFD3 X-CRM114-Status: UNSURE ( 6.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tomasz Maciej Nowak Creating overlay will fail if there's no loop device. Signed-off-by: Tomasz Maciej Nowak --- package/kernel/linux/modules/block.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tomasz Maciej Nowak Creating overlay will fail if there's no loop device. Signed-off-by: Tomasz Maciej Nowak --- package/kernel/linux/modules/block.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/block.mk b/package/kernel/linux/modules/block.mk index 40a14a9be2b1..8affa722963e 100644 --- a/package/kernel/linux/modules/block.mk +++ b/package/kernel/linux/modules/block.mk @@ -465,7 +465,7 @@ define KernelPackage/loop CONFIG_BLK_DEV_LOOP \ CONFIG_BLK_DEV_CRYPTOLOOP=n FILES:=$(LINUX_DIR)/drivers/block/loop.ko - AUTOLOAD:=$(call AutoLoad,30,loop) + AUTOLOAD:=$(call AutoLoad,30,loop,1) endef define KernelPackage/loop/description