Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 2/2] package/util-linux: fix mount helper lookup path
@ 2026-03-14 23:21 stephan
  2026-10-10 20:34 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: stephan @ 2026-03-14 23:21 UTC (permalink / raw)
  To: buildroot; +Cc: Stephan Henningsen, Giulio Benetti

From: Stephan Henningsen <stephan@asklandd.dk>

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>
---
 package/util-linux/util-linux.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index f43a1a128b..a2a11c35d3 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -51,7 +51,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)
 
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/util-linux: fix mount helper lookup path
  2026-03-14 23:21 [Buildroot] [PATCH 2/2] package/util-linux: fix mount helper lookup path stephan
@ 2026-10-10 20:34 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-10 20:34 UTC (permalink / raw)
  To: stephan; +Cc: buildroot, Giulio Benetti

Hello Stephan,

On Sun, Mar 15, 2026 at 12:21:05AM +0100, stephan@asklandd.dk wrote:
> From: Stephan Henningsen <stephan@asklandd.dk>
> 
> 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>

Sorry for the delay, I've now applied your patch. I hesitated a bit
between your patch and --enable-fs-paths-extra=/usr/sbin (perhaps only
when MERGED_USR is disabled), but oh well your patch is simple and
straightforward, so I went for it.

Thanks a lot!

Thomas Petazzoni
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-10 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-14 23:21 [Buildroot] [PATCH 2/2] package/util-linux: fix mount helper lookup path stephan
2026-10-10 20:34 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox