Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2529756rwp; Fri, 14 Jul 2023 07:31:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFO52sPJeRFBgGipCilypt9DK6QGbsXxC+osaG/0xH+ad5BMiAfbMERjdX5oD3n2tGFaQB6 X-Received: by 2002:a05:6a20:1385:b0:12c:b46:7942 with SMTP id hn5-20020a056a20138500b0012c0b467942mr3273264pzc.13.1689345087691; Fri, 14 Jul 2023 07:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689345087; cv=none; d=google.com; s=arc-20160816; b=MBTc2KmGd98B1zsKSXEKCmhsRAWVJjC9YyvsT9QLmnzAbzUizU6PTbyWJl6uqLIslS PAQuomSMJ2VDCPucw/RpmsjWoatTcwpltWjs9kPp+YzC/kaUtitTTiKomRgyNQcp1oWJ uylFn8E+tp1JtIErjiK0FvAuilMGryKJg5G9qOku6m4RdqU5OkF6gIIw3Y3Wp6e1mX8P 5dSCv2BmD0z6EoxUeb46P6Ooi4v2XsQklW83r4RLmKnhuJzpMA9SWMx4f+d4JJ5MP/0X /ohQusQg0rQzvBlQ1IwD4do3tSIStnv+IU9RucYL6qXI/GZwB1wDD+QhHfwS3le+lNKU bC+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=on/azD0IDlTgoCRWpUxAHxN1A8r6V3mGNyszvfAq2XM=; fh=HGAAZapWFvoh+wtdVYJrAK3LrBCHO9XBuN1DhQAOtmw=; b=DgxF4QVuN01dXpwDBUi3vVo8vlqszWraSNaYPr0ZCJ2vhUBdr66ie40mSBDdjOQ13B hZa/PW/h6UscIu4SvvjsNG//d7MY41rEHCqfBZlSXSoefGym3eRxw/5OOQylm6IelB3G xyBoH3GH/uDIuzg++PQyGEaAPhnYlcn0Ku12z7PhdvuTL27p4/k0qjezsLykJflSvjNH uC7KBv9py13wk6qeEI6othFycIyTCC67xFXLH7ICvTyP/WEzSYbsrtWthilHhzh78F7A hKdGWcslAQzQg/trjOOBDAM5Zl/TcaFI+y9Cg3DAZDU/x7TODH3n07co0E+DRhuBkLX/ ysAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QqujmIyU; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h190-20020a6383c7000000b0055336060fa0si7028776pge.378.2023.07.14.07.31.15; Fri, 14 Jul 2023 07:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QqujmIyU; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235667AbjGNOF5 (ORCPT + 99 others); Fri, 14 Jul 2023 10:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235458AbjGNOFz (ORCPT ); Fri, 14 Jul 2023 10:05:55 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FC91989; Fri, 14 Jul 2023 07:05:54 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 08314220DA; Fri, 14 Jul 2023 14:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689343553; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=on/azD0IDlTgoCRWpUxAHxN1A8r6V3mGNyszvfAq2XM=; b=QqujmIyUmcwLCx1w91PVT77vLkB9BZkbmvtw4g2T2Rqu+UJOZ/Vm0E/riRq8hTtUp59xbX ymMKPZAJjtfhzVzSV4MXdOiSra7JX5e0Gc2LrqF2AMuCeSvtkPizx2AeMfcfZAZpNwZoRN pdor5MeOnt9HQvUILjpvtlJXI2MJbkw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689343553; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=on/azD0IDlTgoCRWpUxAHxN1A8r6V3mGNyszvfAq2XM=; b=WS5esd4G5G0U/62lxAWt52V/41MhPMsdJN7JLdxRsX1ahdYQliEle959ILT0M+boS1J5Sb Sb6TNH/gp6eRZaBA== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 5E4962C142; Fri, 14 Jul 2023 14:05:52 +0000 (UTC) Date: Fri, 14 Jul 2023 16:05:51 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: Jan Engelhardt , linux-modules@vger.kernel.org, Takashi Iwai , Lucas De Marchi , Jiri Slaby , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] depmod: Handle installing modules under a prefix Message-ID: <20230714140551.GK9196@kitsune.suse.cz> References: <30d8c675-e769-e567-a81f-c1b59c66ad67@suse.com> <20230714122111.7528-1-msuchanek@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Jul 14, 2023 at 03:59:17PM +0200, Michal Koutn? wrote: > On Fri, Jul 14, 2023 at 03:38:18PM +0200, Jan Engelhardt wrote: > > Ok, so if the problem statement is that hardcoded paths are bad, then why > > continue to hardcode the "/lib/modules" fragment? Just make it so that > > KERNEL_MODULE_PREFIX can be set to the exact string "/usr/lib/modules" and not > > just "/usr". > > That sounds cleaner but I'm worried it would be a BC break in setups > that expect the existing layout under INSTALL_MOD_PATH, wouldn't it? It's a break either way, the expected directory righ now is exactly /lib/modules. /usr/lib/modules works to some extent for some use cases only when the compatibility symlink lib -> usr/lib is present. Thanks Michal