package/util-linux: fix mount helper lookup path

When using /bin/mount to mount filesystems that are not supported
directly by the kernel, it delegates the mount operatin to helper
programs, e.g. mount.fuse.sshfs.  Normally /bin/mount searches
these directories in order for a helper: /sbin, /sbin/fs.d, /sbin/fs.

In reality, Buildroot installs e.g. mount.fuse.sshfs into /usr/sbin,
and as a result /bin/mount fails to mount sshfs entries defined in
/etc/fstab.

The patch changes the default search path at configuration.

Signed-off-by: Stephan Henningsen <stephan@asklandd.dk>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 725cea53c7)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
Stephan Henningsen
2026-03-15 00:21:05 +01:00
committed by Raphaël Mélotte
parent 19cb3b1e50
commit 3422727b3d

View File

@@ -57,7 +57,8 @@ UTIL_LINUX_CONF_OPTS += \
--disable-makeinstall-chown \
--disable-poman \
--disable-rpath \
--disable-year2038
--disable-year2038 \
--enable-fs-paths-default=/sbin:/usr/sbin
UTIL_LINUX_LINK_LIBS = $(TARGET_NLS_LIBS)