Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10628070rwb; Fri, 25 Nov 2022 06:24:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf68kkwp6vcjymLjAmiONMYi1UxgA6cBSElpndbEbHIkc0y/4+FgtiR3F5rD24X41bLIYeID X-Received: by 2002:aa7:dc0c:0:b0:461:6f87:20bb with SMTP id b12-20020aa7dc0c000000b004616f8720bbmr35230270edu.300.1669386256910; Fri, 25 Nov 2022 06:24:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669386256; cv=none; d=google.com; s=arc-20160816; b=YUhnNn3gozP6g1wgVSI9MSAR4Vll6DUlWF/wuKh3kf/Qo+VPDaBMHayAnUy0Xlkhy7 WBbgQBB8g0llMEHV4mD5vVHmVPFIT0LQP6sFABEoG4kPLO00WOlmUqXebt1kVgE7hzPe nIpycpyxE5LwVH1lgHY3YlpVLcNfgeK16svrvcJLxEwNgSKkM9kOBRXCYirZ7LSbcQ2t IM6yFoMKcfaIZzdIVLnbUfJqt0VHgDPukhWkx4ystTOPYuiYNnDRHhuRZj0FaeOWQGG+ 5cJmPhYHAyk5XoaqHTTVdXeAuNVLvQb/eHFct/mafseaeHuTwHO/42SXWSLYdzMHyHv1 jneQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=y4UPRNgYkTTgkIOvGTjmVSedLlvmZSyOq0T81C3zGQQ=; b=zU8q628zprudV+8G/TG1zioaSFuKeVhKa1RTOtrQq43gfmjHofQPrt3R6oZwBGrbft WBX1wbrAKBxGZBwBYOkdhJtMseD2fnkHV0MlD+gR+ls1MdV/5Fl9LUMJlf5YnE8yozRM VSmu6VhQbRt7H+xK4lqJC3bednEfiKotLRAu5K926S7AojNYA921Wv+nO1Wjm7y73re/ iPnQbJ2dVGBQXKI0SGhqyV4POeFZ041FeE7C9yUUKtAc8vYIfvSZZoR+lO88FVnczXEw cG2b60AZM2UfIFMhsEWLAKiw+u/HINz1V/APH9QPwIs/jT31ZIDoPghMgCkxLsPm53P3 Qx4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GzBphOai; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020aa7cd8e000000b0046a0331778dsi3193504edv.118.2022.11.25.06.23.49; Fri, 25 Nov 2022 06:24:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@gmail.com header.s=20210112 header.b=GzBphOai; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbiKYOHL (ORCPT + 99 others); Fri, 25 Nov 2022 09:07:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiKYOHK (ORCPT ); Fri, 25 Nov 2022 09:07:10 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0382C1EC43 for ; Fri, 25 Nov 2022 06:07:09 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id e13so6533313edj.7 for ; Fri, 25 Nov 2022 06:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=y4UPRNgYkTTgkIOvGTjmVSedLlvmZSyOq0T81C3zGQQ=; b=GzBphOai3x59cLnsLGgVud00By7NgbRGrVMsrTugVfnKlFdUxaxyAAk6my4jKS3GNs Fv3uzZkChmT+Tq2ws7JY2zkjGUgVrIfo3juThdX4GaLZHGi7E0ixVxAdzD11ownXIgch +J9YvgnarIc0CH2oqWta46pi7WHyduzW9JyYmKiMhDL+RmvRPKYIo3+NeOqwS6QH7l5W 58j4cZEspy2a2rh0zOvYUPYDL/KrxDGvOAgxMWmr4sNsI3oHBkPGaeuyGh7c4S8vfQRQ EjJX3cqBHiOwHORlaTn/y25JaVwSX97TqIFUxifHM0sfQqte6vpI0h0awRFP+nQV575g rR5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=y4UPRNgYkTTgkIOvGTjmVSedLlvmZSyOq0T81C3zGQQ=; b=6zXAoANN5YEq1/b7NGo7CzJ85anag7TwFSUIZ1icm7uwccp5LZGQFbQXu6OOyGSECt ASPSbvUYJNlp2j8D/uXWf3R5B7zh7gwUIuMyhO9bGSFVZkecFTbjEPEewijW84QflXKy aLR7k6dk1k+Ns4uFFdbMezfcP5PXqZ44WtTzVGOuRzIYVeH9wJmfIEoHTUfn7G8wWqBo cXKkPhrbQZWcHsXxeR8vJxyBg/lc7I0IpbY2mi4sFw9EvB5ARqJPBkQCU0jKUiJu8I8N ubLJ6zxYf/5CJ88VDp+mcq83vUoxxIg9l+l3oedT7ILOzUsJy52NJi6jPLah0I+NXsPY e0MA== X-Gm-Message-State: ANoB5pn16azH9s/rbBvSYiwegR5oYvj1yWSVRZFmtyr1SHrVT9o4msgv HrKvyVcSYkoRyYKHfT8rvr0= X-Received: by 2002:a05:6402:370e:b0:464:fa1:9dc3 with SMTP id ek14-20020a056402370e00b004640fa19dc3mr20649757edb.343.1669385228491; Fri, 25 Nov 2022 06:07:08 -0800 (PST) Received: from eldamar.lan (c-82-192-242-114.customer.ggaweb.ch. [82.192.242.114]) by smtp.gmail.com with ESMTPSA id j9-20020a1709066dc900b007ba46867e6asm1633919ejt.16.2022.11.25.06.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 06:07:08 -0800 (PST) Sender: Salvatore Bonaccorso Received: by eldamar.lan (Postfix, from userid 1000) id 71E26BE2DE0; Fri, 25 Nov 2022 15:07:07 +0100 (CET) From: Salvatore Bonaccorso To: NeilBrown , Steve Dickson , linux-nfs@vger.kernel.org Cc: Andras Korn , Marco d'Itri , Michael Prokop , Salvatore Bonaccorso Subject: [PATCH v2 3/4] Revert "systemd: Apply all sysctl settings when NFS-related modules are loaded" Date: Fri, 25 Nov 2022 15:06:55 +0100 Message-Id: <20221125140656.1985137-4-carnil@debian.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125140656.1985137-1-carnil@debian.org> References: <20221125140656.1985137-1-carnil@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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-nfs@vger.kernel.org This reverts commit afc7132dfb212ac1f676a5ac36d29a9e06325645. The approach caused problems with sysctl from busybox and with kmod as reported in Debian (https://bugs.debian.org/1024082). Signed-off-by: Salvatore Bonaccorso --- systemd/50-nfs.conf | 16 ---------------- systemd/Makefile.am | 10 ++-------- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 systemd/50-nfs.conf diff --git a/systemd/50-nfs.conf b/systemd/50-nfs.conf deleted file mode 100644 index b56b2d765969..000000000000 --- a/systemd/50-nfs.conf +++ /dev/null @@ -1,16 +0,0 @@ -# Ensure all NFS systctl settings get applied when modules load - -# sunrpc module supports "sunrpc.*" sysctls -install sunrpc /sbin/modprobe --ignore-install sunrpc $CMDLINE_OPTS && /sbin/sysctl -q --pattern sunrpc --system - -# rpcrdma module supports sunrpc.svc_rdma.* -install rpcrdma /sbin/modprobe --ignore-install rpcrdma $CMDLINE_OPTS && /sbin/sysctl -q --pattern sunrpc.svc_rdma --system - -# lockd module supports "fs.nfs.nlm*" and "fs.nfs.nsm*" sysctls -install lockd /sbin/modprobe --ignore-install lockd $CMDLINE_OPTS && /sbin/sysctl -q --pattern fs.nfs.n[sl]m --system - -# nfsv4 module supports "fs.nfs.*" sysctls (nfs_callback_tcpport and idmap_cache_timeout) -install nfsv4 /sbin/modprobe --ignore-install nfsv4 $CMDLINE_OPTS && /sbin/sysctl -q --pattern 'fs.nfs.(nfs_callback_tcpport|idmap_cache_timeout)' --system - -# nfs module supports "fs.nfs.*" sysctls -install nfs /sbin/modprobe --ignore-install nfs $CMDLINE_OPTS && /sbin/sysctl -q --pattern fs.nfs --system diff --git a/systemd/Makefile.am b/systemd/Makefile.am index 63a50bf2c07e..e7f5d818a913 100644 --- a/systemd/Makefile.am +++ b/systemd/Makefile.am @@ -2,8 +2,6 @@ MAINTAINERCLEANFILES = Makefile.in -modprobe_files = 50-nfs.conf - unit_files = \ nfs-client.target \ rpc_pipefs.target \ @@ -53,7 +51,7 @@ endif man5_MANS = nfs.conf.man man7_MANS = nfs.systemd.man -EXTRA_DIST = $(unit_files) $(modprobe_files) $(man5_MANS) $(man7_MANS) +EXTRA_DIST = $(unit_files) $(man5_MANS) $(man7_MANS) generator_dir = $(unitdir)/../system-generators @@ -75,12 +73,8 @@ rpc_pipefs_generator_LDADD = ../support/nfs/libnfs.la if INSTALL_SYSTEMD genexec_PROGRAMS = nfs-server-generator rpc-pipefs-generator -install-data-hook: $(unit_files) $(modprobe_files) +install-data-hook: $(unit_files) mkdir -p $(DESTDIR)/$(unitdir) cp $(unit_files) $(DESTDIR)/$(unitdir) cp $(rpc_pipefs_mount_file) $(DESTDIR)/$(unitdir)/$(rpc_pipefsmount) -else -install-data-hook: $(modprobe_files) endif - mkdir -p $(DESTDIR)/usr/lib/modprobe.d - cp $(modprobe_files) $(DESTDIR)/usr/lib/modprobe.d/ -- 2.38.1