GNU bug report logs - #42036
Failed to mount fuse sshfs

Previous Next

Package: guix;

Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>

Date: Wed, 24 Jun 2020 20:38:01 UTC

Severity: normal

Full log


Message #17 received at 42036 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: Efraim Flashner <efraim <at> flashner.co.il>, 42036 <at> debbugs.gnu.org
Subject: Re: bug#42036: Failed to mount fuse sshfs
Date: Sun, 28 Jun 2020 13:49:26 +0200
[Message part 1 (text/plain, inline)]
Oleg Pykhalov 写道:
> Tobias Geerinckx-Rice <me <at> tobias.gr> writes:
>> However, Oleg: are you sure it looks *only* in /bin?

[…]

> Here is a ‘mount -t‘ strace:
> --8<---------------cut 
> here---------------start------------->8---
> oleg <at> guixsd ~$ mount -t fuse -o rw,allow_other 
> sshfs#oleg <at> workstation:/home/oleg /tmp/f
> /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh: 
> sshfs: command not found
>
> execve("/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh", 
> ["/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh", 
> "-c", "'sshfs' 'oleg <at> workstation:/home/oleg' '/tmp/f' '-o' 
> 'rw,allow_other,dev,suid'"], 0x961430 /* 74 vars */) = 0
> ...
> stat(".", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
> stat("/usr/local/bin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No 
> such file or directory)
> stat("/usr/local/sbin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No 
> such file or directory)
> stat("/usr/bin/sshfs", 0x7ffed0ac1c90)  = -1 ENOENT (No such 
> file or directory)
> stat("/usr/sbin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No such 
> file or directory)
> stat("/bin/sshfs", 0x7ffed0ac1c90)      = -1 ENOENT (No such 
> file or directory)
> stat("/sbin/sshfs", 0x7ffed0ac1c90)     = -1 ENOENT (No such 
> file or directory)
> stat(".", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
> stat("./sshfs", 0x7ffed0ac1c90)         = -1 ENOENT (No such 
> file or directory)
> --8<---------------cut 
> here---------------end--------------->8---

Thanks!  This part comes from mount.fuse, right?

mount calls mount.fuse with $PATH unset.  mount.fuse calls 
<bash-minimal>/bin/sh -c sshfs …, which uses

 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.

by default.  Not very useful on Guix Systems.

I'm considering the best place to fix this: util-linux (probably), 
fuse (it would only affect mount.fuse, but maybe we want that kind 
of control), or bash (almost certainly not).

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.