all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: Reza Housseini <reza.housseini@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Mount sshfs at boot or login
Date: Thu, 10 Feb 2022 03:18:59 +0300	[thread overview]
Message-ID: <87iltn4lqk.fsf@gmail.com> (raw)
In-Reply-To: <CAGZc64H2ypoGOcWuYS-90RKYsBaYwOXKhJfwJVS4mn+4yQ4L2Q@mail.gmail.com> (Reza Housseini's message of "Wed, 9 Feb 2022 15:46:10 +0100")

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

Hi,

Reza Housseini <reza.housseini@gmail.com> writes:

> I am searching a possible configuration to mount an sshfs filesystem
> at boot or login.  Do I use the pam-mount-service-type [1] for this?
> Are there any examples of a configuration?  Additionally I would like
> to use encfs on top of the mounted sshfs, also when possible at boot
> or login?

I don't think PAM is required.

Personally I use autofs service [1], but it's not upstreamed to Guix
repository because of:

- restarting service does not work, need to stop and start instead.
- mount -t fuse requires /bin/ssh and /bin/sshfs [2]

Other that that, it works pretty well with configuration:
--8<---------------cut here---------------start------------->8---
(service autofs-service-type
         (autofs-configuration
          (mounts (list
                   (autofs-mount-configuration
                    (target "/mnt/ssh/workstation")
                    (source ":sshfs\\#ws1.wugi.info\\:/home/oleg"))))))

;; 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---

[1]
https://gitlab.com/wigust/dotfiles/-/blob/cbaf864f29b7568454d2089666f64e45adfcb06f/dotfiles/guixsd/modules/services/autofs.scm
[2] https://issues.guix.gnu.org/42036

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

      reply	other threads:[~2022-02-10  0:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-09 14:46 Mount sshfs at boot or login Reza Housseini
2022-02-10  0:18 ` Oleg Pykhalov [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iltn4lqk.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=reza.housseini@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.