Skip to contentSkip to conversation

package/util-linux: add patch to use correct fs search path

PATCH In review [email protected] 1 participant 2 messages Mar 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/util-linux: add patch to use correct fs search path

From: Stephan Henningsen <[email protected]>

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 defined by FS_PATHS_DEFAULT in configure.ac to /sbin, /usr/sbin so mount can find the helper.

---
 .../0001-default-search-path-for-fs-helpers.patch    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 package/util-linux/0001-default-search-path-for-fs-helpers.patch
package/util-linux/0001-default-search-path-for-fs-helpers.patch new file +12 -0
new file mode 100644
index 0000000000..1d88bdf9ac
@@ -0,0 +1,12 @@
+diff -purN util-linux-2.41.1.orig/configure.ac util-linux-2.41.1/configure.ac
+--- util-linux-2.41.1.orig/configure.ac	2025-06-24 07:55:28.420692425 +0000
++++ util-linux-2.41.1/configure.ac	2026-03-14 21:40:16.749465392 +0000
+@@ -2919,7 +2919,7 @@ AS_IF([test "x$enable_pg_bell" = xyes],
+ ])
+ 
+ 
+-AC_DEFUN([FS_PATHS_DEFAULT], [/sbin:/sbin/fs.d:/sbin/fs])
++AC_DEFUN([FS_PATHS_DEFAULT], [/sbin:/usr/sbin])
+ AC_ARG_ENABLE([fs-paths-default],
+   AS_HELP_STRING([--enable-fs-paths-default=paths], [default search path for fs helpers @<:@FS_PATHS_DEFAULT@:>@]),
+   [AS_CASE([$enableval],
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot