• Re: Bug#1022172: /lib/modprobe.d/50-nfs.conf causes initramfs-tools to

    From Marco d'Itri@21:1/5 to Andras Korn on Fri Oct 21 15:20:01 2022
    On Oct 21, Andras Korn <korn-debbugs@elan.rulez.org> wrote:

    I thought --ignore-install was completely broken, but no, because without it, the output contains *more* "install" lines:
    What you are actually seeing is that --ignore-install is applied only to
    the nfs module (the one which you have requested to load) but not to its
    own dependencies:

    diff -U 0 <(modprobe --all --set-version="6.0.0-1-amd64" --ignore-install --quiet --show-depends nfs) <(modprobe --all --set-version="6.0.0-1-amd64" --quiet --show-depends nfs)

    I am not sure if this is a bug or a feature, so this should be discussed
    with the upstream maintainer.

    So the possible solutions are:
    - the semantics of --ignore-install are changed upstream (this may take
    some time)
    - initramfs-tools learns to parse the install directives
    - nfs-kernel-server uses a different design

    No matter what happens to --ignore-install I suggest that
    nfs-kernel-server will replace the modprobe configuration with some udev
    rules like this one (untested):

    ACTION=="add", SUBSYSTEM=="module", KERNEL=="sunrpc", \
    RUN+="/sbin/sysctl -q --pattern sunrpc --system"

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCY1KafwAKCRDLPsM64d7X gVWOAP9vv1cpybvF7ihY4NkD4BptNXhjZ3lF5rQJgsZyD8u9iwD5AT+JJ/o1joCA oHJvpsOwndh/WEwICekKTSc2h3OMlg0=
    =K0/4
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Prokop@21:1/5 to All on Mon Nov 14 15:40:01 2022
    * Marco d'Itri [Sun Oct 23, 2022 at 12:05:18AM +0200]:
    On Oct 22, Andras Korn <korn-debbugs@elan.rulez.org> wrote:

    nfs-kernel-server, for example, the 'install' command wants to invoke sysctl --pattern, but the busybox sysctl installed in the initramfs by default doesn't support --pattern. So the package would need to force initramfs to include the /sbin/sysctl from procps, and maybe also any pertinent files from /etc/sysctl.d.

    Looks like this is a different problem.

    FYI: I reported this one as #1024082, looks like the new /lib/modprobe.d/50-nfs.conf file is causing quite some problems.

    (FTR, this showed up at the Grml live system, see e.g. https://github.com/grml/grml/issues/193 )

    regards
    -mika-

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEM8yxNkAa/shDo4djlqh4crfqNzcFAmNyUsgACgkQlqh4crfq NzdI7g//TTk8cM1uLi8hpRohNaXMDi/38lMdlwKQ5gDnUy8a2IGc43LeD1nFFaPM ve53eH6xX9qoW53jN62AR+JQl2g2t9mcQAUgJBXe3GqU4HqD1hMMjTLi3Z16q4iy AGy0OZX0bxEykHrPvO5Zat+p1qWNrAN3vFMMnII+xqe9nTIYm3ZcA+XbYRHqhWMT mPIA4cyOrFKEBQ6y/7gAIjwqicGvZxIYhwY5pYITiaHM70Uvf1U79thoxXrbiWUR R2iUcy1DHGxMoi8XO+QjWO2RU9+X7H58RQkhwEjEDQoXBo9l+kW3tO1owDsdwTb5 IwSzfLPK/FM2ioVi7G6JCEANlS5yxC3W7gJNwLEbP8mY2CJ91GL9o/BBefARkGzi 05mE/d8SM966ZLJYKyJw0/YQX3tWwGL30vGCWyI8Hx2Ljq6D6GoCMsC/7Za3pKlk JFYyjhGzW2uqWhi9+OUQdaRDICisOK0IOu0wPrU2HzWC2CDScQKDOBH9vIyqfNfo /BTmJ/zu1qMy4fM6mo/unu1a/nlUEGvdxJC+GRDfN8LAlpyjKsDjoF9bM7Fp96Dv HiGImPHUOFGuhR+szwLdqnlcKJ1VN/VjbIBKjpcxL8UKuTEYInTdPuuwTtxKuLRy qH/R0UkEt4voH6GQvq2a30/v97W5ZH8jX3GtZ/WDKP8Yqmat4xE=
    =gyrf
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco d'Itri@21:1/5 to Michael Prokop on Mon Nov 14 15:50:01 2022
    On Nov 14, Michael Prokop <mika@debian.org> wrote:

    FYI: I reported this one as #1024082, looks like the new /lib/modprobe.d/50-nfs.conf file is causing quite some problems.
    At this point we have established that for good or for worse kmod is
    behaving as documented, so we are down to one of:

    - initramfs-tools learns to parse the install directives
    - nfs-kernel-server uses udev rules instead

    I recommend the second option, which is much more general and robust.

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCY3JUlgAKCRDLPsM64d7X gXgpAP9CjVnBnz+FqhNPR93fY2yHbqU5X1r688hJhqvF6/C/agD/ZDXZJJy0tw2q q6meNv32JkOrIAsWUfcRsIyogjxetAE=
    =YIRI
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)