Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10553528rwb; Fri, 25 Nov 2022 05:47:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7W9pZMFbJu1qxZ7Ffd9pv0TGIlDDOz0+FxxPxc3AUHjHcFL7zFHliKLtasP/853vow3hJL X-Received: by 2002:a05:6402:1718:b0:46a:2f31:eb0 with SMTP id y24-20020a056402171800b0046a2f310eb0mr12525281edu.332.1669384034607; Fri, 25 Nov 2022 05:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669384034; cv=none; d=google.com; s=arc-20160816; b=L10JvRv7LV4TCj61evyo2f6rLXm46gD8W5Nb/tMwFH1LaNCRZAId0fNLXFYJMVURk9 Sq682cKaM+bdbDK+BstwIpGFUhno/wO5YRdv7ERDq8DWbF875AIBzKmF/75xH0v/7RQH QkiB/Eoku6pJFvMMUOmSm6q2qlxmIgK8UZPZOADV9hjq0vcAxlErnl4pE9/gbo75lKtj eBqzZHYuxNvtj7rt/GGTTHijzXerMHaK74wMRnbsAYY3m3zlNt/YNBLTyrl+IL9ojueq tHVfyJg7c+BPMPaHYGJEROOGvhCx7lsFHMYzP8PpQM/A4u/JchwONZH6QGanHoe3t3Ya 4Tfw== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=BBR1MNFsTOVqNo8FTY9EEymycg5PYyiMmeKtoPmEjcI=; b=RxWtVyolgdF9hsQWn6lgx/eH6lJ61RGwrAcUaPFjRlgZNAMrg7NOO9pDh+lddoTijd nvXGYGlxTaOHEBdyz1HdTiC0Q5KD7y9npCq8m59C1agckC5DTkCU6KHNxRtJIVkg6rV4 LM2Wc6f+b+3Y2pOEGcgLSHn+fWXiVHN2LLfzby0CYqztl24IU6sIlQI8JEFiiNuHKord 7zDHSR95T7PLZcMl126TyibvWKz8q1LgD75cBtaF/A54guRVLiFeemPFvmwM/5A+wd0m eRhD7olfzhQu97GJgNv9R4BClB7XzPYkcEUxpILjQ4RPx5LGaj4DCfn3a/2lQSJMzR89 g3tA== ARC-Authentication-Results: i=1; mx.google.com; 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 hd8-20020a170907968800b007ae86742c3bsi3528183ejc.1009.2022.11.25.05.46.44; Fri, 25 Nov 2022 05:47:14 -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; 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 S229730AbiKYNiN (ORCPT + 99 others); Fri, 25 Nov 2022 08:38:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiKYNiM (ORCPT ); Fri, 25 Nov 2022 08:38:12 -0500 X-Greylist: delayed 498 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 25 Nov 2022 05:38:09 PST Received: from odysseus.grml.info (odysseus.grml.info [136.243.234.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E76B212A92 for ; Fri, 25 Nov 2022 05:38:09 -0800 (PST) Received: by odysseus.grml.info (Postfix, from userid 105) id B8AA3416F8; Fri, 25 Nov 2022 14:29:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from localhost (localhost.localdomain [127.0.0.1]) by odysseus.grml.info (Postfix) with ESMTP id 52D0C40283; Fri, 25 Nov 2022 14:29:35 +0100 (CET) Date: Fri, 25 Nov 2022 14:29:35 +0100 From: Michael Prokop To: Salvatore Bonaccorso Cc: NeilBrown , Steve Dickson , linux-nfs@vger.kernel.org, Andras Korn , Marco d'Itri Subject: Re: [PATCH 4/4] systemd: Apply all sysctl settings through udev rule when NFS-related modules are loaded Message-ID: <2022-11-25T14-20-47@devnull.michael-prokop.at> References: <20221125130725.1977606-1-carnil@debian.org> <20221125130725.1977606-5-carnil@debian.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7NwO/uecqw5YxyZh" Content-Disposition: inline In-Reply-To: <20221125130725.1977606-5-carnil@debian.org> User-Agent: Mutt/2.0.5 (2021-01-21) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --7NwO/uecqw5YxyZh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, * Salvatore Bonaccorso [Fri Nov 25, 2022 at 02:07:25PM +0100]: > sysctl settings (e.g. /etc/sysctl.conf and others) are normally loaded > once at boot. If the module that implements some settings is no yet > loaded, those settings don't get applied. >=20 > Various NFS modules support various sysctl settings. If they are loaded > after boot, they miss out. >=20 > Add a new udev rule configuration to udev/rules.d/60-nfs.rules to apply > the relevant settings when the module is loaded. >=20 > Placing it in the systemd directory similarly as the coice for the > original commit afc7132dfb21 ("systemd: Apply all sysctl settings when > NFS-related modules are loaded"). [...] > --- /dev/null > +++ b/systemd/60-nfs.rules > @@ -0,0 +1,21 @@ > +# Ensure all NFS systctl settings get applied when modules load > + > +# sunrpc module supports "sunrpc.*" sysctls > +ACTION=3D=3D"add", SUBSYSTEM=3D=3D"module", KERNEL=3D=3D"sunrpc", \ > + RUN+=3D"/sbin/sysctl -q --pattern ^sunrpc --system" [...] Thanks for taking care of this problem, Salvatore! AFAICT even latest busybox's sysctl does not support the `--pattern` option yet: | sysctl: unrecognized option '--pattern' | BusyBox v1.35.0 (Debian 1:1.35.0-4) multi-call binary. | [....] So any initramfs that uses busybox and its sysctl (like in Debian) and trying to apply above udev rules might fail? regards -mika- --7NwO/uecqw5YxyZh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEM8yxNkAa/shDo4djlqh4crfqNzcFAmOAwzwACgkQlqh4crfq NzcsBBAAndEOIhSMBIOEl+jjmL4XsloDjW3B5EjE6942goTBloxukF09rZi6DZeS 79pnlvVtOFQ48HGG4v87q1G0MXVU+8GezMQSDVVphJyHGJjdKCUKOlcXdkZAiU9F kRXMicfJISSrEYovkho/vFMQRAbvv5a1kCcCkE6vIWRnVupu7wjVlZ3wvr0ckd5P ThZhpkEsIMQys+VW/6RZwSBVaYDe/Ieu9NDDHf2PqXSY4U9oloK+CreIrLKn3dpF QFybUOjq2x0wwF7AgwzbYqviXzw086+Lq4e93jdV8ispQ9FHF7I5VrDp2RYbbqSk LjhTQaLrvxv85S/fwENEE3aHdWsvd6FBxjbcB+PtefbUty2ClRkHgQ22QZ3/CfXd ozGLPPa97zIOztnQ53ck9+sK7N4V3L4AcIwFaiah0phT75sFcNnEgrDD2Wyjk/EX WOEyVT09zyQ0CogUoCIRhYb3v5qly3ATVT2FEon1yFRs38BAKsQajrgVnXJMyfiJ 1/Xp5goTU7xVdtysSCHjrFNO0dcA5AK/WB3wdHmXJTf/xtjFpNHIhr1gz7oOpoi5 5uHRZ+J/xiNmNre5ALlENwd8t/IieKF/H8s1sfUUBWdSIlOgFqDgzLHOm13dMCAO 5cUiDpWpvS1t1ooSrE/1ghwCgGQ/NwDd1EJs5hOGgz8Q8N9guYM= =4KJg -----END PGP SIGNATURE----- --7NwO/uecqw5YxyZh--