From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 39551@debbugs.gnu.org
Subject: bug#39551: [PATCH v2] Cannot declare an NFS mount using the <file-system> record
Date: Thu, 13 Feb 2020 10:45:54 -0500 [thread overview]
Message-ID: <87r1yybidp.fsf@gmail.com> (raw)
In-Reply-To: <87wo8r1uvt.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Wed, 12 Feb 2020 14:13:42 -0500")
Still more work needs to be done to have working NFS mounts though,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Attached is v2 of the patch, fixing the comment in the code as reported
> by Tobias.
>
> Thank you!
Naively inputting what you'd use in /etc/fstab into your <file-system>
record is not going to work because (gnu build file-systems)'s
mount-file-systems uses the *system call* mount rather than the user
command (mount(2) vs mount(8)), which don't accept the same arguments.
E.g.:
--8<---------------cut here---------------start------------->8---
scheme@(guix-user)> ,import (gnu system file-systems)
scheme@(guix-user)> ,import (gnu build file-systems)
scheme@(guix-user)> (define fs (file-system
(device "192.168.51.34:/mnt/scratch/yocto-sstate")
(mount-point "/mnt/scratch/yocto-sstate")
(type "nfs")
(options "rw,async,soft,noexec")))
scheme@(guix-user)> (mount-file-system fs)
No file system check procedure for 192.168.51.34:/mnt/scratch/yocto-sstate; skipping
guix/build/syscalls.scm:486:8: In procedure mount: mount "192.168.51.34:/mnt/scratch/yocto-sstate" on "/root//mnt/scratch/yocto-sstate": Invalid argument
--8<---------------cut here---------------end--------------->8---
Although:
--8<---------------cut here---------------start------------->8---
cat /etc/fstab
# This file was generated from your Guix configuration. Any changes
# will be lost upon reboot or reconfiguration.
LABEL=btrfs-pool / btrfs subvol=rootfs,compress=lzo
LABEL=btrfs-pool /home btrfs subvol=home,compress=lzo
192.168.51.34:/mnt/scratch/yocto-sstate /mnt/scratch/yocto-sstate nfs rw,async,soft,noexec
--8<---------------cut here---------------end--------------->8---
# mount /mnt/scratch/yocto-sstate
# echo $?
0
next prev parent reply other threads:[~2020-02-13 15:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-10 19:41 bug#39551: Cannot declare an NFS mount using the <file-system> record Maxim Cournoyer
2020-02-12 8:54 ` Maxim Cournoyer
2020-02-12 18:30 ` Giovanni Biscuolo
2020-02-12 19:12 ` Maxim Cournoyer
2020-02-18 17:28 ` Maxim Cournoyer
2020-02-12 19:13 ` bug#39551: [PATCH v2] " Maxim Cournoyer
2020-02-13 15:45 ` Maxim Cournoyer [this message]
2020-02-13 21:37 ` Ludovic Courtès
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=87r1yybidp.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=39551@debbugs.gnu.org \
/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).