From: Fredrik Salomonsson <plattfot@posteo.net>
To: Remco <remco@remworks.net>, Felix Lechner <felix.lechner@lease-up.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Trouble with nfs mount
Date: Sun, 23 Oct 2022 20:39:28 +0000 [thread overview]
Message-ID: <87wn8qxojj.fsf@posteo.net> (raw)
In-Reply-To: <946494ba-b6ca-4a0f-a3c7-2f107a87b0a3@app.fastmail.com>
Hi Remco,
Remco <remco@remworks.net> writes:
> Autofs works pretty well for me. Using the stock package and a service like described here:
>
> https://www.rohleder.de/2020/07/04/autofs/
Thanks for pointing out Autofs. I did not know about it before and
indeed it works quite well for this. I based mine of what described in
the link, here's what I ended up with:
---✂----------------------------------------------------------------------------
(define (automount-shepherd-service config)
(list (shepherd-service
(provision '(automount))
(documentation "Run the automount server.")
(requirement '(networking))
(start #~(make-forkexec-constructor
(list #$(file-append autofs "/sbin/automount") "-f")
#:log-file "/var/log/automount.log"))
(stop #~(make-kill-destructor)))))
(define automount-service-type
(service-type
(name 'automount)
(description "Run the automount server.")
(extensions
(list (service-extension shepherd-root-service-type
automount-shepherd-service)
(service-extension rottlog-service-type
(const
(list (log-rotation
(files (list "/var/log/automount.log"))))))
(service-extension etc-service-type
(lambda (config)
`(("autofs.conf" ,(plain-file "autofs.conf" ""))
("auto.master" ,(plain-file "auto.master" "\
/media /etc/autofs/auto.valhalla --timeout 60
"))
("autofs/auto.valhalla" ,(plain-file "auto.valhalla" "\
Valhalla -rw,soft fafner:/srv/nfs4/Valhalla
")))))))
(default-value '())))
--------------------------------------------------------------------------------
--
s/Fred[re]+i[ck]+/Fredrik/g
next prev parent reply other threads:[~2022-10-24 6:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-16 21:46 Trouble with nfs mount Fredrik Salomonsson
2022-10-16 23:17 ` Felix Lechner via
2022-10-17 1:08 ` Fredrik Salomonsson
2022-10-17 1:18 ` Felix Lechner via
2022-10-17 16:37 ` Fredrik Salomonsson
2022-10-17 16:50 ` Remco
2022-10-23 20:39 ` Fredrik Salomonsson [this message]
2022-10-17 1:46 ` Maxim Cournoyer
2022-10-17 16:49 ` Fredrik Salomonsson
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=87wn8qxojj.fsf@posteo.net \
--to=plattfot@posteo.net \
--cc=felix.lechner@lease-up.com \
--cc=help-guix@gnu.org \
--cc=remco@remworks.net \
/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.