From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#33517: Problem booting when using btrfs subvolume for /gnu/store Date: Wed, 28 Nov 2018 14:21:47 +0100 Message-ID: <87zhtt49sk.fsf@gnu.org> References: <87mupva8j5.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:4830:134:3::10]:56377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRzzQ-0001oS-SM for bug-guix@gnu.org; Wed, 28 Nov 2018 08:34:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRzn0-00050s-IF for bug-guix@gnu.org; Wed, 28 Nov 2018 08:22:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48683) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRzn0-00050c-Cl for bug-guix@gnu.org; Wed, 28 Nov 2018 08:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gRzn0-0003ys-8B for bug-guix@gnu.org; Wed, 28 Nov 2018 08:22:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mupva8j5.fsf@cbaines.net> (Christopher Baines's message of "Mon, 26 Nov 2018 20:27:58 +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 Hello, Christopher Baines skribis: > I'm loosing track of this issue a bit, as I've been dealing with it for > a while. I have a machine that I've setup where /gnu/store is a btrfs > subvolume. I do this so that I can make flexible use of the space on > that btrfs filesystem. > > Unfortunately, the grub configuration generated for this doesn't seem to > account for this, and so it requires some tweaking to get it to boot. > > A long while back, I discovered I could make the following change, then > the generated grub configuration would be fine. > > > --- > gnu/bootloader/grub.scm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm > index 06856dd58c..c3ddc3e128 100644 > --- a/gnu/bootloader/grub.scm > +++ b/gnu/bootloader/grub.scm > @@ -320,8 +320,8 @@ entries corresponding to old generations of the syste= m." > ;; Use the right file names for KERNEL and INITRD in case > ;; DEVICE-MOUNT-POINT is not "/", meaning that the store is on a > ;; separate partition. > - (let ((kernel (strip-mount-point device-mount-point kernel)) > - (initrd (strip-mount-point device-mount-point initrd))) > + (let ((kernel kernel) > + (initrd initrd)) > #~(format port "menuentry ~s { > ~a > linux ~a ~a > -- > 2.19.2 > > > > 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 cod= e could determine whether we actually need to strip the mount point? Thanks, Ludo=E2=80=99.