From: Oleg Pykhalov <go.wigust@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: 42036@debbugs.gnu.org
Subject: bug#42036: Failed to mount fuse sshfs
Date: Fri, 26 Jun 2020 09:01:05 +0300 [thread overview]
Message-ID: <877dvujrha.fsf@gmail.com> (raw)
In-Reply-To: <87bll7b9e1.fsf@nckx> (Tobias Geerinckx-Rice's message of "Thu, 25 Jun 2020 14:46:46 +0200")
[-- Attachment #1: Type: text/plain, Size: 2560 bytes --]
Hi,
Tobias Geerinckx-Rice <me@tobias.gr> writes:
> Efraim Flashner 写道:
>> I'm not clear on the usage of sshfs, but I just tried 'sshfs
>> efraim@other-machine: mnt/' and it worked without any issues.
>
> Right. The bug is mount(8) not finding it because it(?) only looks in /bin,
> apparently. This poses a problem with e.g. autofs.
>
> However, Oleg: are you sure it looks *only* in /bin? Did you install ‘sshfs’
> to your user profile (‘guix install’ or a manifest) or system profile (the
> ‘packages’ field of your ‘operating-system’)?
I tried to install in Guix system profile via ‘packages’ field. No
success to run mount.
Then I added to ‘services’ field:
--8<---------------cut here---------------start------------->8---
;; mount -t fuse and autofs
(extra-special-file "/bin/sshfs"
(file-append sshfs "/bin/sshfs"))
(extra-special-file "/bin/ssh"
(file-append openssh "/bin/ssh"))
--8<---------------cut here---------------end--------------->8---
which works without problems.
I didn't have an idea to install them in non-priveleged user profile,
because I tested with a ‘root’ account.
Here is a ‘mount -t‘ strace:
--8<---------------cut here---------------start------------->8---
oleg@guixsd ~$ mount -t fuse -o rw,allow_other sshfs#oleg@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@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---
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2020-06-26 6:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 20:36 bug#42036: Failed to mount fuse sshfs Oleg Pykhalov
2020-06-25 10:27 ` Efraim Flashner
2020-06-25 12:46 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-06-26 6:01 ` Oleg Pykhalov [this message]
2020-06-28 11:49 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-05-16 6:51 ` Michael Rohleder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dvujrha.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=42036@debbugs.gnu.org \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).