From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: guix system init with mounted btrfs Date: Sun, 23 Jun 2019 14:42:05 +0200 Message-ID: <87v9wwscbm.fsf@nckx> References: <87r27lginz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46053) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hf1p6-00036N-VL for help-guix@gnu.org; Sun, 23 Jun 2019 08:42:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hf1p6-0006hZ-11 for help-guix@gnu.org; Sun, 23 Jun 2019 08:42:20 -0400 Received: from tobias.gr ([2001:470:7405::1]:34850) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hf1p5-0006XX-Bs for help-guix@gnu.org; Sun, 23 Jun 2019 08:42:19 -0400 In-reply-to: <87r27lginz.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Matt Huszagh Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Matt, [If you sent two mails because your first didn't immediately=20 arrive: it was probably held for moderation since you appear to be=20 new here. Welcome!] Matt Huszagh wrote: > I'm encountering the error "rmdir: Device or resource busy" when=20 > I > attempt to perform guix system init on a mount point that has=20 > btrfs > subvolumes. So something's (preventatively?) deleting a directory that has=20 something mounted over or in it, or is a subdirectory itself=20 (although that seems unlikely in this layout). I had a dig around, didn't find any likely culprits, but this=20 could be happening anywhere. Does =E2=80=98guix system init=E2=80=99 print= =20 anything else? Don't waste *too* much time debugging your error message, though.=20 Guix System doesn't have any code to handle fancy subvolume=20 swappery like this. I'm afraid you'll have to drop the @-scheme=20 entirely. > mount -o subvol=3D@guixsd,$o_btrfs LABEL=3Dbtrfs /mnt > mount -o subvol=3D@gnu,$o_btrfs LABEL=3Dbtrfs /mnt/gnu The two above are especially problematic: Guix's GRUB looks only=20 for /gnu/store/=E2=80=A6-linux/, which is now two indirections away. Guix System *probably* supports=E2=81=B0 =E2=80=98in-place=E2=80=99 subvolu= mes like btrfs subvol create /gnu/store only because it doesn't need to support them: they're just=20 directories. > mount -o subvol=3D@grub,$o_btrfs LABEL=3Dbtrfs /mnt/boot/grub Does GRUB support magically finding itself elsewhere like this?=20 Does this work on other distributions? If so, do you know how? =E2=80=A6 You're damn right that this needs to be improved. Hands welcome=20 :-) Kind regards, T G-R [0]: At least I think I did so once but never made use of its=20 subvolliness, so I stopped doing so. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXQ9znQAKCRANsP+IT1Vt eaSoAP9TX9rmP9et4fv0VspPLjy/To72rFy3YQ5/9tuBnqolQAD+PEZ5vqhSDJuP 5W36rHyv1I637TDiXhdHAcjHGYH4kAg= =XERu -----END PGP SIGNATURE----- --=-=-=--