Package: autofs
Version: 5.1.8-2+deb12u2
Severity: normal

Dear Maintainer,

There are no options passed to automounter for NFS version 3

The reason is that the options are initialized after they are used.

In
https://salsa.debian.org/debian/autofs/-/blob/master/debian/patches/fix-nfs4-mounts-in-auto-net.patch?ref_type=heads
the opts assignment was moved from line 10 to line 58 and is below
its usage in line 52.

The fix is to move the opts before the showmount command

```
HOWMOUNT="$SMNT --no-headers -e $key"

opts="-fstype=nfs,vers=3,hard,intr,nodev,nosuid"

$SHOWMOUNT | LC_ALL=C cut -d' ' -f1 | LC_ALL=C sort -u | \
```

It would be nice to add the vers=3 into the opts. With my ancient
Synology NAS running DSM 4.2 it causes the system to crash and needs
a power cycle to recover.

Kind regards,
Duncan


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

Kernel: Linux 6.1.0-22-rt-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autofs depends on:
ii  init-system-helpers  1.65.2
ii  libc6                2.36-9+deb12u7
ii  libnsl2              1.3.0-2
ii  libtirpc3            1.3.3+ds-1
ii  libxml2              2.9.14+dfsg-1.3~deb12u1
ii  ucf                  3.0043+nmu1

Versions of packages autofs recommends:
ii  e2fsprogs   1.47.0-2
ii  kmod        30+20221128-1
ii  nfs-common  1:2.6.2-4

autofs suggests no packages.

-- no debconf information

Reply via email to