From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#33517: Problem booting when using btrfs subvolume for /gnu/store Date: Thu, 26 Sep 2019 17:04:24 +0900 Message-ID: <87ef03eb5j.fsf@gmail.com> References: <87mupva8j5.fsf@cbaines.net> <87zhtt49sk.fsf@gnu.org> <875zwdqgtn.fsf@cbaines.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38288) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDOlu-00018b-Rb for bug-guix@gnu.org; Thu, 26 Sep 2019 04:05:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDOlt-0003Mo-Ra for bug-guix@gnu.org; Thu, 26 Sep 2019 04:05:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33831) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDOlt-0003LE-Ld for bug-guix@gnu.org; Thu, 26 Sep 2019 04:05:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDOlq-0004Jz-4X for bug-guix@gnu.org; Thu, 26 Sep 2019 04:05:04 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <875zwdqgtn.fsf@cbaines.net> (Christopher Baines's message of "Sat, 01 Dec 2018 17:48:04 +0000") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Christopher Baines Cc: 33517@debbugs.gnu.org Hi Christopher, Christopher Baines writes: > Ludovic Court=C3=A8s writes: > >> Hello, >> >> Christopher Baines skribis: >> >>> Unfortunately, it's not a proper solution, as it obviously breaks when >>> you actually want to strip the mount point off so that grub can find the >>> right files. >> >> Is there a way =E2=80=98strip-mount-point=E2=80=99 or some higher-level = code could >> determine whether we actually need to strip the mount point? > > So, this is the file-system value that I'm using currently for the > store. The information about subvolume is in the options value. > > (file-system > (device (uuid "84fc6b78-d7ff-45df-8659-bef44b5bf0ea")) > (type "btrfs") > (title 'uuid) > (mount-point "/gnu/store") > (needed-for-boot? #t) > (options "subvol=3D/gnu/store")) Ah, that subvolume name explains why your fix would work. I was confused at first why such fix should work. Grub mounts the Btrfs partition at its 'top level'. In Btrfs, the subvolume names appear as directories under the top level, so in your case not striping the mount-point amounts to prepending the subvolume name to the "real" file path location (as it has the same value as the mount-point). That means that your fix only works when mount-point =3D=3D subvol. Maxim