From mboxrd@z Thu Jan  1 00:00:00 1970
From: Bengt Richter <bokr@bokr.com>
Subject: bug#37021: GuixSD 1.01-i686 install DVD boot failure on Macbook1,
 1: failed to resolve partition
Date: Fri, 16 Aug 2019 12:51:28 -0700
Message-ID: <20190816195128.GA1338@PhantoNv4ArchGx.localdomain>
References: <1565734617.2324.20.camel@sbcglobal.net>
 <1565821926.5199.14.camel@gmail.com>
 <20190815104327.ovotebrnc7pw6mqx@pelzflorian.localdomain>
 <1565906757.2236.36.camel@gmail.com>
Reply-To: Bengt Richter <bokr@bokr.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Return-path: <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:470:142:3::10]:48343)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hyiGb-0001FO-7b
 for bug-guix@gnu.org; Fri, 16 Aug 2019 15:52:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hyiGa-0000nI-1F
 for bug-guix@gnu.org; Fri, 16 Aug 2019 15:52:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:46098)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1hyiGZ-0000nC-Tz
 for bug-guix@gnu.org; Fri, 16 Aug 2019 15:52:03 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hyiGX-0007C2-Jx
 for bug-guix@gnu.org; Fri, 16 Aug 2019 15:52:01 -0400
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-Message-ID: <handler.37021.B37021.156598511327635@debbugs.gnu.org>
Content-Disposition: inline
In-Reply-To: <1565906757.2236.36.camel@gmail.com>
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org
Sender: "bug-Guix" <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
To: Calvin Heim <frofroggy@gmail.com>
Cc: 37021@debbugs.gnu.org

On +2019-08-15 15:05:57 -0700, Calvin Heim wrote:
> resubmitted to list
> On Thu, 2019-08-15 at 12:43 +0200, pelzflorian (Florian Pelz) wrote:
> > 
> > Do I understand correctly that this message appears when booting the
> > DVD, not the installed system?
> Yes.
> 
> > 
> > 
> > On Wed, Aug 14, 2019 at 03:32:06PM -0700, Calvin Heim wrote:
> > > 
> > > 
> > >  waiting for partition '31393730-3031-3031-3139-343934363833' to appear...
> > I cannot check right now if that is a legitimate partition id for the
> > i686 installer, but the installer source code in
> > gnu/system/install.scm should mount a partition with
> > (file-system-label "Guix_image").  You could check from another OS if
> > this partition label exists.  
> From Trisquel 8,
> $ ls /dev/disk/by-label
>   GUIX_IMAGE
>  
> $ls /dev/disk/by-uuid
>  1970-01-01-19-49-46-83
>  [other stuff that doesn't change when the DVD ejects]
>
I have found this incantation, and variants, e.g. filtering with grep, useful also:

$ stat -c %N /dev/disk/by-*/*

I have also encountered, IIRC, system versions where /disk/dev/by-* could present info
from stale cache information, so it might not show what e.g. the following might:

$ lsblk
$ lsblk -f

For your purposes, it might be worth trying asking for interesting
specifics (see lsblk -h for more), e.g.

$ lsblk -o mountpoint,name,size,fstype,label,partlabel,partuuid,uuid

Maybe that partuuid '31393730-3031-3031-3139-343934363833' might show up?

BTW, I think some older systems might not know how to look for partuuid,
(especially beyond the intial boot device?) and it could be worth trying
plain uuid instead. I suspected such a stiutation when I got
a not-found in the past, but did not diagnose it unambigously.

--8<--aside
BTW2, I am using refind to multiboot, and consider my shooting myself in the foot
(clobbering my efi partition with unintended grub install) as a kind of usability-bug,
which I am tempted to use as rationale for posting to this list (but not hijacking
this post further ;-) Would that be ok, or should I join guix-help as well? I am getting
more email traffic than I am used to :) ... 

(I would like to mount a losetup file partition as a target for grub bootloader install,
and thereby capture initrds etc for manual (at first ;-) transfer into my refind efi vfat
file tree.)
--8<--aside--

> The contents of by-id and by-partuuid don't change when the install DVD is inserted,
> so I assume that the contents of those directories are not related to the DVD.
> > 
> > You could also type in the recovery
> > Guile repl that opens:
> > 
> > (use-modules (ice-9 ftw))
> > (scandir "/dev/disk/by-id")
> > (scandir "/dev/disk/by-uuid")
> > (scandir "/dev/disk/by-partuuid")
> > 
> > and maybe:
> > 
> > ,L bournish
> > cat /run/booted-system/etc/fstab
> > 
> The keyboard/usb ports do not function at this point in the boot,
> despite working earlier in the boot during EFI and GRUB.  I
> can see but not type in the recovery Guile repl.
> 
> > 
> > Regards,
> > Florian
> 
Regards,
Bengt Richter