[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#409272: nfsmount: incompatible with nfsv4--workaround fails



Package: klibc-utils
Version: 2.0.8-6.1
Followup-For: Bug #409272
X-Debbugs-Cc: RossBoylan@stanfordalumni.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Earlier in this bug, Trent Buck suggested an initramfs hook zz-nfs4 to work
around the problem.  I tried it, but I still can't get an NFS 4 mount.

I think the problem is that the script did not copy mount.nfs to nfsmount,
since the 2 files have completely different sizes.  I'm not familiar enough
with the details of hooks for initramfs to understand why.

I installed the script zz-nfs4 and made it executable, then ran
update-initramfs -u -v
and copied the result to where my tftp server could find it.  My server
continues to recieve MNT3 NFS requests, which it denied.

I used unkminitramfs to inspect the initrd.  Here is the file the script wants
to copy, followed by the target:

root@barley:~# ls -l /sbin/mount.nfs
- -rwsr-xr-x 1 root root 114784 Jun 28  2021 /sbin/mount.nfs
root@barley:~# ls -l initramfs/bin/nfs*
- -rwxr-xr-x 1 root root 15232 May 26  2021 initramfs/bin/nfsmount

Obviously different.

I ran update-initramfs within a chroot on the file system (direct, not NFS
mounted) and then used a virtual machine with bridged networking to try to PXE
boot.  I also tried earlier with a physical machine and got similar errors.

I have tried with and without vers as an option on nfsroot for the kernel
invocation, and vers=4 and vers=4.2.  Explicit specification just gets me an
error about an unrecognized option.  I saw some people suggesting this on the
internet, but I note the kernel documentation does *not* list vers as an
available option:
https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt.  Possibly
the documentation is dated.

Onward to making my server respond to NFSv3, I guess


- -- System Information:
Debian Release: 11.5
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-
updates-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-19-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages klibc-utils depends on:
ii  libklibc  2.0.8-6.1

klibc-utils recommends no packages.

klibc-utils suggests no packages.


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

iQFSBAEBCgA8FiEEreS674/HIyV9gBfdnAYPmOsbK2AFAmOFZT8eHHJvc3Nib3ls
YW5Ac3RhbmZvcmRhbHVtbmkub3JnAAoJEJwGD5jrGytg8m4H/RCxhrS5TGI5QLXu
oNVqTif6+msKN9pCKs7SUBTY18ExwL3+sFBcxq+5bTn0m0ZSvda6sQsXeqg22+I1
FAUo1gX8Xu5Hx3+LtTZpHUzSscjdGcyiCE/Zx7WIYeIwN0uDcXDuJrQWU60S5I1s
vMhQiHxO2tGSww3MS6tbCL+7aFqcwPLFUvIHJcvffl0GvlDkutAUtQdKdp4qpX1/
bNv8fwyWtbIsaB6ThuDoUWUPgCMV+g1MSaSZtJYnc1Ti8hLKyZBGt4+7SM6+FaeW
IVbISwHhaJk+hEsurhXwslYNUe847vFKvQVsuVg7q64tkWnYpGuY6osBkNrDhd1i
YoSOvz4=
=czY4
-----END PGP SIGNATURE-----


Reply to: