unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Matt Huszagh <huszaghmatt@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: guix system init with mounted btrfs
Date: Sun, 23 Jun 2019 14:42:05 +0200	[thread overview]
Message-ID: <87v9wwscbm.fsf@nckx> (raw)
In-Reply-To: <87r27lginz.fsf@gmail.com>

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

Matt,

[If you sent two mails because your first didn't immediately 
arrive: it was probably held for moderation since you appear to be 
new here.  Welcome!]

Matt Huszagh wrote:
> I'm encountering the error "rmdir: Device or resource busy" when 
> I
> attempt to perform guix system init on a mount point that has 
> btrfs
> subvolumes.

So something's (preventatively?) deleting a directory that has 
something mounted over or in it, or is a subdirectory itself 
(although that seems unlikely in this layout).

I had a dig around, didn't find any likely culprits, but this 
could be happening anywhere.  Does ‘guix system init’ print 
anything else?

Don't waste *too* much time debugging your error message, though. 
Guix System doesn't have any code to handle fancy subvolume 
swappery like this.  I'm afraid you'll have to drop the @-scheme 
entirely.

> mount -o subvol=@guixsd,$o_btrfs LABEL=btrfs /mnt
> mount -o subvol=@gnu,$o_btrfs LABEL=btrfs /mnt/gnu

The two above are especially problematic: Guix's GRUB looks only 
for /gnu/store/…-linux/, which is now two indirections away.

Guix System *probably* supports⁰ ‘in-place’ subvolumes like

  btrfs subvol create /gnu/store

only because it doesn't need to support them: they're just 
directories.

> mount -o subvol=@grub,$o_btrfs LABEL=btrfs /mnt/boot/grub

Does GRUB support magically finding itself elsewhere like this? 
Does this work on other distributions?  If so, do you know how?

…

You're damn right that this needs to be improved.  Hands welcome 
:-)

Kind regards,

T G-R

[0]: At least I think I did so once but never made use of its 
subvolliness, so I stopped doing so.

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

  reply	other threads:[~2019-06-23 12:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-23  2:05 guix system init with mounted btrfs Matt Huszagh
2019-06-23 12:42 ` Tobias Geerinckx-Rice [this message]
2019-06-23 12:47   ` Tobias Geerinckx-Rice
2019-06-23 17:36   ` Matt Huszagh
2019-06-23 21:10   ` Matt Huszagh
2019-06-24 11:49     ` Efraim Flashner
2019-06-24 14:51       ` Matt Huszagh
2019-06-24 17:54         ` Matt Huszagh
2019-06-25  6:27           ` Efraim Flashner

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=87v9wwscbm.fsf@nckx \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=huszaghmatt@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.
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).