From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13D3CC433E9 for ; Tue, 5 Jan 2021 01:05:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E076622573 for ; Tue, 5 Jan 2021 01:05:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728944AbhAEBEi (ORCPT ); Mon, 4 Jan 2021 20:04:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:39240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728376AbhAEBBN (ORCPT ); Mon, 4 Jan 2021 20:01:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 59FA522B3F; Tue, 5 Jan 2021 01:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609808420; bh=xPVYCDo7m9vj/HyfSA/Rfwh14AAcJNulQJp97M2XknU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UyxF6Qq+COFKXsJBaGiQ3ePFKA0mqd9xzqUHzmlzojBny2csjKL7e1EmE7j4sTsop KRY6MuRHPWZE0jq5YUuQ2ACP9gwMzhjZ9C29oSntXZLvc1qRqU72tMbmBBRWLXLyAJ K1R2Kla1K+1iBhLM6uFnvcVTv8kvkcF8hkWrQfbqELEZu6a1Bvm9qSTFNN/IgQ4OeF zGM2S7X0rViq4g0cixiG584LiXkQeKZa9aI8VBdNIbiRgyF0Lx19mZFhsXfygR8/qw 1sf2aSyi4q+Xx7KaVimFLSUuY3E7oUgH9mqm0NY4djCFzQ/s51boftFA04IO4xAJBi A/PXjp/DO/CuA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Torvalds , Sedat Dilek , Sasha Levin Subject: [PATCH AUTOSEL 4.14 6/6] depmod: handle the case of /sbin/depmod without /sbin in PATH Date: Mon, 4 Jan 2021 20:00:12 -0500 Message-Id: <20210105010012.3954626-6-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210105010012.3954626-1-sashal@kernel.org> References: <20210105010012.3954626-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH (generally because /sbin is limited to the super-user path). Work around it for now by just adding /sbin to the end of PATH in the depmod.sh script. Reported-and-tested-by: Sedat Dilek Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- scripts/depmod.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/depmod.sh b/scripts/depmod.sh index cf5b2b24b3cf1..c7b8f827c4b09 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -15,6 +15,8 @@ if ! test -r System.map ; then exit 0 fi +# legacy behavior: "depmod" in /sbin, no /sbin in PATH +PATH="$PATH:/sbin" if [ -z $(command -v $DEPMOD) ]; then echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2 echo "This is probably in the kmod package." >&2 -- 2.27.0