From: "François-René Rideau" <fare@mukn.io>
To: 35472@debbugs.gnu.org
Subject: bug#35472:
Date: Mon, 9 Aug 2021 13:54:15 -0400 [thread overview]
Message-ID: <CAOhKva1Rku8SZDx3twnH-+2sfApiqTF+9vvh0_YMpV8-3oC=OA@mail.gmail.com> (raw)
In-Reply-To: <a31590f5-918c-5d13-4021-20f0117c1f30@s.rendaw.me>
I believe my issue is the same and that I could narrow it down more.
The `mount --bind /nixos/nix /nix` command works, but if I put a line
`"/nixos/nix /nix bind defaults"` in `/etc/fstab`, then mount will instead
fail with: `mount: /nix: unknown filesystem type 'bind'.`
If instead in fstab I use type `none` and put `bind` in the options,
then `mount /nix` works at the command-line but interestlingly
`guix system reconfigure guix-config.scm` still fails with:
```
guix system: warning: exception caught while executing 'start' on
service 'file-system-/nix':
In procedure mount: mount "/nixos/nix" on "///nix": No such device
guix system: warning: some services could not be upgraded
```
Below is the `file-systems` definition of my `guix-config.scm`, in an attempt
to share the `/nix` directory of my NixOS installation with GuixSD, just like
I share the /guix directory of my GuixSD installation with NixOS:
```
(file-systems
(append
(let* ((boot (file-system
;;(uuid "C1D9-0574")
(device "/dev/nvme0n1p1")
(mount-point "/boot")
(type "vfat")))
(root (file-system
;;(device "/dev/mapper/yew-guix")
(device (uuid "43f7ca3e-c107-4f15-9756-5d3cbacad0a0"))
(mount-point "/")
(type "btrfs")
#;(flags '(no-atime))
(options "compress=zstd")
(dependencies mapped-devices)))
(home (file-system
;;(device "/dev/yew/home")
(device (uuid "a3602532-3527-4afc-9b40-5d01c58b5aa8"))
(mount-point "/home")
(type "ext4")
(dependencies mapped-devices)))
(nixos (file-system
(device (uuid "ab3d691b-227a-4a05-a084-6928abbf0959"))
(mount-point "/nixos")
(type "ext4")
(dependencies mapped-devices)))
(nix (file-system
(device "/nixos/nix")
(mount-point "/nix")
;;(type "bind") ;; fails both at CLI and during reconfigure
(type "none") (option "bind") ;; CLI OK, reconfigure FAIL
(dependencies (list nixos)))))
(append (list boot root home nixos nix) %base-file-systems))))
```
Note that neither bind nor none appear in `/proc/filesystem` nor in
`/run/booted-system/kernel/lib/modules/5.13.8/kernel/fs` — but then
neither do they on NixOS and yet it all works there.
next prev parent reply other threads:[~2021-08-09 18:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-28 15:27 bug#35472: Boot bind mount device path incorrect rendaw
2021-08-09 17:54 ` François-René Rideau [this message]
2021-08-09 18:56 ` bug#35472: Leo Famulari
2021-08-09 21:06 ` bug#35472: François-René Rideau
2021-08-09 22:09 ` bug#35472: Leo Famulari
2021-08-10 1:22 ` bug#35472: François-René Rideau
2021-08-09 22:58 ` bug#35472: Boot bind mount device path incorrect Leo Famulari
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='CAOhKva1Rku8SZDx3twnH-+2sfApiqTF+9vvh0_YMpV8-3oC=OA@mail.gmail.com' \
--to=fare@mukn.io \
--cc=35472@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).