[Pkg-zfsonlinux-devel] Bug#1126316: zfsutils-linux: /usr/lib/udev/vdev_id requires gawk when multipath enabled
Paul B. Henson
henson at acm.org
Sat Jan 24 05:57:56 GMT 2026
Package: zfsutils-linux
Version: 2.3.2-2
Severity: normal
X-Debbugs-Cc: henson at acm.org
While trying to setup /etc/zfs/vdev_id.conf on a system with dual ported
SAS drives using multipath, the expected links were not appearing in
/dev/disk/by-vdev. Upon investigation, I discovered that
/usr/lib/udev/vdev_id uses a gawk specific function:
----
+ awk
{ len=sprintf ("%20s",length($0)); gsub(/ /,0,str); a[NR]=len "_" $0; }
END {
asort(a)
print substr(a[1],22)
}
awk: line 7: function asort never defined
-----
The default awk implementation appears to be mawk:
lrwxrwxrwx 1 root root 21 Feb 4 2025 /usr/bin/awk -> /etc/alternatives/awk
lrwxrwxrwx 1 root root 13 Feb 4 2025 /etc/alternatives/awk -> /usr/bin/mawk
so the udev script was failing.
I'm assuming upstream probably won't be interested in making their awk
script posix compliant, so perhaps zfsutils-linux should depend on gawk,
and the script be updated to call gawk directly rather than whatever the
default system awk is?
Oh, I generated this bug report on my workstation as the server can't
connect to the Internet; the server is running Debian 13 not 12.
Thanks...
-- System Information:
Debian Release: 12.13
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-42-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
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 zfsutils-linux depends on:
ii init-system-helpers 1.65.2+deb12u1
ii libblkid1 2.38.1-5+deb12u3
ii libc6 2.36-9+deb12u13
pn libnvpair3linux <none>
ii libssl3 3.0.18-1~deb12u1
ii libudev1 252.39-1~deb12u1
ii libuuid1 2.38.1-5+deb12u3
pn libuutil3linux <none>
pn libzfs4linux <none>
pn libzfs6linux <none>
pn libzpool5linux <none>
pn libzpool6linux <none>
ii python3 3.11.2-1+b1
Versions of packages zfsutils-linux recommends:
pn zfs-modules | zfs-dkms <none>
pn zfs-zed <none>
Versions of packages zfsutils-linux suggests:
pn nfs-kernel-server <none>
ii samba-common-bin 2:4.17.12+dfsg-0+deb12u3
pn zfs-initramfs | zfs-dracut <none>
More information about the Pkg-zfsonlinux-devel
mailing list