Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2290808pxb; Mon, 11 Jan 2021 06:11:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfw9eFxDRAa/0Bn7qOkK5Z1TUUxJhfSo7JcvLdhphyIP+bZbfXYwUXxS4ynhkh2qmJt9L6 X-Received: by 2002:a05:6402:490:: with SMTP id k16mr13955694edv.71.1610374263435; Mon, 11 Jan 2021 06:11:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610374263; cv=none; d=google.com; s=arc-20160816; b=pa9mgq0u+rL+kAPuzfbZ+NOLBpAQ5tRQms+CUCjid8+l6OHnPFUuNx7QrAziG3bR65 rh4g7WRXy49qCgJEJvIM+w/kq/GXbtSoJzCcRWUTyix427uHDFrVlHiYthP2JM/VOtxZ 0c0wcmM9oDIoft3G+5mAdAd8SA4iYgbzQwvgxiWGv51UzHGmugx/6LsResjWHiOzHr1d u5RcNzwk1vMj+X0mEDofavT1E33WSAMIkKQMsH0KJZcpTws/r2D97qyyNAvDWiRrVFim ilks3xDmRROivrANmfQjjIy1+D2byRYMLo9tajV8LgbnI0T0X/VKUg2sKpBD6hZR9oNz L0bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ogrnNpVsyNxy9+pj8pjUSDeQnZTvUThNgGislBDpzgw=; b=WBV9WWMu2m6KM5jUOBYl8RjrPfvxznPQgehqYQdi4gA5EcC6HEOm168mbyKwAReCTR UlJp8bThGUn9cCDUaryXxtBDs1OT9g/Sra0h79ZcacAINRJMzkLemAwwUaxPR/v5VXvu vWDRYx5vHrsBHLGZQJ/HsQ+GV4EHJi9CR7hM3HgdKB/toDj73OTJiKCWWwo/Qaey3tXw LAgWi4cZXh2nOWlPJfU2EHLWzNV3DRM0vbe6vimdSEOyIedvhQ63vWt7yi03VBbRCqHE Z0tmrqm4irxfcXDlrV3Hw1sGhoctfCHLsuN4sfQ+0SUU/Ce7ms0veyxZJ3swgjADcyev NC4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F7qPUF1h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si7025416edj.409.2021.01.11.06.10.39; Mon, 11 Jan 2021 06:11:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F7qPUF1h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730228AbhAKOId (ORCPT + 99 others); Mon, 11 Jan 2021 09:08:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:50256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729900AbhAKNDf (ORCPT ); Mon, 11 Jan 2021 08:03:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D377822BED; Mon, 11 Jan 2021 13:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370187; bh=gWKgDk65pk4N3a3WPjK1gyEft3PaJi9n7dDh+HCNjlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F7qPUF1h780eePLvdtBJpg2qc042srl05wcG+SXkcWQnXabDsqD7jtfnh6WY/Kf3I GilPv/3a2GVdrI+IzGLU0IBxIMFJdwEMPr/QhLH4AqXU/SM9RYp0H0urGugv7gg1bb IerohrwLbIdMBA1mTYrTNZlMX2Os5proz7p2fYeU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Sasha Levin , Sedat Dilek Subject: [PATCH 4.9 04/45] depmod: handle the case of /sbin/depmod without /sbin in PATH Date: Mon, 11 Jan 2021 14:00:42 +0100 Message-Id: <20210111130033.894454623@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130033.676306636@linuxfoundation.org> References: <20210111130033.676306636@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 baedaef53ca05..b0cb89e73bc56 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -14,6 +14,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