Devuan bug report logs - #535
No grub menu on uefi install

Package: devuan-installer; Reported by: fsmithred <fsmithred@gmail.com>; Done: Ralph Ronnquist <ralph.ronnquist@gmail.com>; Maintainer for devuan-installer is (unknown).

Message received at 535-done@bugs.devuan.org:


Received: (at 535-done) by bugs.devuan.org; 10 Jan 2021 02:20:02 +0000
Return-Path: <ralph.ronnquist@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sun, 10 Jan 2021 02:20:02 +0000 (UTC)
Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id AA3F9F60B24
	for <535-done@bugs.devuan.org>; Sun, 10 Jan 2021 03:18:25 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cQQO7679";
	dkim-atps=neutral
Received: by mail-pg1-f180.google.com with SMTP id n7so10263428pgg.2
        for <535-done@bugs.devuan.org>; Sat, 09 Jan 2021 18:18:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=from:date:to:subject:message-id:mime-version:content-disposition;
        bh=4iGXg4NHVAtxK03ccy2Oo92o/xzjK8IN5kgTECGb5D8=;
        b=cQQO7679cOjsNhS/qVLmybrr/RF6nB7PjfpsuPVk/KR0IkZfqAXxFCunDWHRnCKbfI
         laKJmOpBkLdYx8VBGOlso+fzb7oI9GnukKCzD0w0bHRxOPCECFBCbWOSvAhUBys5kh3p
         q5FWpwDovVD/LxHFAqNrNB7mc3kQ/07yUcePlqBrnG1itGbA7YugzKDSm30kDoD8+2EI
         Yl63zMx/SOxLLVOR+9Z/4q4Uo0hLpdp8OKVMZD4J1vgiSf5W6g6Bli26+wNNR2S6g5oN
         cy1mHgvu93vWfKRxZtVMbM3OHU0eucA+axkNH8ISBCbEuQzZ5Pl3jSrWohOfWbPpTV+7
         P+GA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:date:to:subject:message-id:mime-version
         :content-disposition;
        bh=4iGXg4NHVAtxK03ccy2Oo92o/xzjK8IN5kgTECGb5D8=;
        b=HW9H8CND3VSvQpt9CwRJ47NmqqCQToTsoKX12WtN8I+BieDZmBDQ2R2d9btCMf9yLt
         5BgPBciU4GY6n++ibupW+nkT6zzA2KWsWkAcJpA6Zb6TjW/YJ4RnJn3fkAYOSoQiLmy3
         6uWBHvycuvTgKqrzXi/5pJsnhF8hTqxD/dcSwSDG40KReEDbPcyANm23zXFVb5tFnH+w
         ODzUXfGK6Fcm9mLflVRyfBgmYnn284jvl8Xht9CJ+tJ6eZ5+dPv6+/fNjKLxf/GT+UTd
         hsO8AdiA3nv99uB4pdb+HTFsS0BoI/Pw3aU4oc0ZUkpwT8gwt9GSRNnP5qzRmrc9e6Nh
         fT7g==
X-Gm-Message-State: AOAM530opp95IlqHNqXeOHBaj6n7UzvIxWErCcPus+u3HrD+Fqjx3E54
	wmsWRY14xWCERpP7ZLmNTUfkPG2/pxJ2Tg==
X-Google-Smtp-Source: ABdhPJxrHxg0cC6l9oah5ZF7PTTkgNeiiQmDL97aKgrl6KfBbYu3YazNnwaRW77/czxhtTCkROVolg==
X-Received: by 2002:a63:5463:: with SMTP id e35mr13869973pgm.151.1610245103055;
        Sat, 09 Jan 2021 18:18:23 -0800 (PST)
Received: from ascii (59-102-1-180.tpgi.com.au. [59.102.1.180])
        by smtp.gmail.com with ESMTPSA id x23sm14073223pgk.14.2021.01.09.18.18.20
        for <535-done@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sat, 09 Jan 2021 18:18:22 -0800 (PST)
From: Ralph Ronnquist <ralph.ronnquist@gmail.com>
X-Google-Original-From: Ralph Ronnquist <Ralph.ronnquist@gmail.com>
Date: Sun, 10 Jan 2021 13:18:17 +1100
To: 535-done@bugs.devuan.org
Subject: Re: No grub menu on uefi install
Message-ID: <X/pj6RzIHtBuR3hK@ascii>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

The move of grub.cfg is installed via a magic-touch patch that
register a finish-install.d script to perform the move at the very end
of the installation.

Notification sent to fsmithred <fsmithred@gmail.com>:
bug acknowledged by developer. Full text available.
Reply sent to Ralph Ronnquist <ralph.ronnquist@gmail.com>:
You have taken responsibility. Full text available.

Message received at 535@bugs.devuan.org:


Received: (at 535) by bugs.devuan.org; 8 Jan 2021 23:00:02 +0000
Return-Path: <ralph.ronnquist@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Fri, 08 Jan 2021 23:00:02 +0000 (UTC)
Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 644A4F608D2
	for <535@bugs.devuan.org>; Fri,  8 Jan 2021 23:49:59 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="H8J/0cJ9";
	dkim-atps=neutral
Received: by mail-pj1-f54.google.com with SMTP id u4so5303169pjn.4
        for <535@bugs.devuan.org>; Fri, 08 Jan 2021 14:49:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=from:date:to:subject:message-id:mime-version:content-disposition;
        bh=5557E6FJUX0ErK3v0ZRoGfN7sahGAYAAQb2qbJwnkRM=;
        b=H8J/0cJ9EOysnQk1IzLn/1Yf5XplQqy4zPua60e+BRcZ6CGro+KcSom1Ghz49DfIKB
         /g3X1Di7Ey2Rtwvjwguk9Kix9LPIUF+lESLQwIin1qufOoRjayDoZOoOQ46+LwIMHM1j
         7of8GS/MMthvurXezZE3L76sXwxzFf1wn2CulERhrCHzD6CIF7DLHhdVqZsoOMG14vkL
         zGNmDdZV1Rh3j9JFcgeebO7LK4/k4kGaXyziASL1+UNyVnXC6uyIT4J4NefhW0p3yJfx
         N4aHfJkxy2iyTcC9XXa4YcwLr0hoL6FuNA9XmuEka5IlF4E0KnjnTLnTBP/xAtRor5j3
         VjCg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:date:to:subject:message-id:mime-version
         :content-disposition;
        bh=5557E6FJUX0ErK3v0ZRoGfN7sahGAYAAQb2qbJwnkRM=;
        b=DlSMfK8Lo5oA6VsjgodDaKd4p/G5J9304C87auNZ3D9FS1pI6pqtjOLhbBFf8vu3si
         GAJdI4/aGu+zD7rLWPPaeB/I8wEbEbDFFxAyD862VQ3vjGFhEaSqdsWrrihlFM3rbzMe
         epp6m4+yxw70dk2BbVC4bdpE84wufYFhCMG7+yUFcJjwmxBZmBIG00sYSztFrRFMl2Pr
         Z2qmGpSfqHAzj4zfIrhcOZUWcSphpwLRl2mzcvAebls9n1zit+aL8k5o0FQ2aOosJ+ds
         BwRdwFOup+V9xoVXF7P5ofdVj0fYzaMwiOvqcI/5Iekb/rg17pP++jXPxXtAywupQOLj
         dhWQ==
X-Gm-Message-State: AOAM530L3Bg2izeL58bHenFFoxD7w/CoduBbhnGC3sxUl2JLZRhBi6/R
	RxTx7jodtqlko+dL20EjDRDsOu20Sf9TLQ==
X-Google-Smtp-Source: ABdhPJydxyqnx296AeLvO84uQyG45d8t4T9GoS5h/kHlVJ1/WleTvH4daObLKov7qxVUq8b+XpKXqw==
X-Received: by 2002:a17:90a:674c:: with SMTP id c12mr5875782pjm.98.1610146196725;
        Fri, 08 Jan 2021 14:49:56 -0800 (PST)
Received: from ascii (borta.rrq.id.au. [2001:19f0:5801:e4:5400:1ff:feed:77b6])
        by smtp.gmail.com with ESMTPSA id gp17sm5739923pjb.0.2021.01.08.14.49.54
        for <535@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Fri, 08 Jan 2021 14:49:55 -0800 (PST)
From: Ralph Ronnquist <ralph.ronnquist@gmail.com>
X-Google-Original-From: Ralph Ronnquist <Ralph.ronnquist@gmail.com>
Date: Sat, 9 Jan 2021 09:49:51 +1100
To: 535@bugs.devuan.org
Subject: Re: No grub menu on uefi install
Message-ID: <X/jhjx0ONVbhWw+T@ascii>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

This is verified to happen also for server-amd64.iso, using QEMU with
TianoCORE UEFI.

There is an initial quirk with TianoCORE, that if the target disk has
an EFI partition then its first boot option will be atttempted first,
rather than using the ISO's boot option. In that case, one must exit
the grub prompt so as to enter the TianCORE setup menu, and then go
into the "Boot Manager" to select the boot option from the second ISO
(called DVD) parition, which boots the installer.

An alternative way to recover from that quirk is to simply delete the
partitions e.g. with fdisk.

The installer creates an EFI partition on the target disk that contains:
    EFI/devuan/shimx64.efi
    EFI/devuan/grubx64.efi
    EFI/devuan/mmx64.efi
    EFI/devuan/fbx64.efi
    EFI/devuan/BOOTX64.CSV
    EFI/devuan/grub.cfg

It has "EFI/debian" embedded into the grubx64.efi binary, which
apparently is used for trying to find "grub.cfg". So, I changed that
partition to be:
    EFI/devuan/shimx64.efi
    EFI/devuan/grubx64.efi
    EFI/devuan/mmx64.efi
    EFI/devuan/fbx64.efi
    EFI/devuan/BOOTX64.CSV
    EFI/debian/grub.cfg
(i.e. created EFI/debian and moved EFI/devuan/grub.cfg to there)

It now boots nicely. The UEFI boot option says "devuan" (you don't
normally see this though) and the grub menu menu says "Devuan".

No other patch; i.e., not running any grub-*

I imagine there is a solution using the ID_LIKE entry in
/etc/os-release to make that happen as part of the grub installation
or update.

Ralph.

Acknowledgement sent to Ralph Ronnquist <ralph.ronnquist@gmail.com>:
Extra info received and forwarded to list. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org:
bug#535; Package devuan-installer. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 8 Jan 2021 12:10:03 +0000
Return-Path: <fsmithred@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Fri, 08 Jan 2021 12:10:03 +0000 (UTC)
Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 9EEAEF604BE
	for <submit@bugs.devuan.org>; Fri,  8 Jan 2021 13:08:16 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="RTdfsmnA";
	dkim-atps=neutral
Received: by mail-qk1-f175.google.com with SMTP id v126so8181774qkd.11
        for <submit@bugs.devuan.org>; Fri, 08 Jan 2021 04:08:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=to:from:subject:message-id:date:user-agent:mime-version
         :content-language:content-transfer-encoding;
        bh=CE1eeNJiBj37bUkImGntaq3L5S61ylilJxOSAlzYwhI=;
        b=RTdfsmnAO/jK+IpFRVyRjQalt6FVY5xMGzg501CloW2y9ka82bXXzGwfAbG9rBzwFh
         JDJAi75Kp2LOxUhJHIJ665ygJOEW6hnGfxnhD1GuxATTs7Ckl9aVwppCacRIJVDOAYHl
         ZcHPBW3nW1EAqIO2f/tvLisSl86KoX0e/VbzgKYcOisAq2SRfMVEbUheiT1ei/5TYcpK
         X3yWbI+VcuFhAHoyLriy1Hf0UWJF9ocCZUpuRbvhWK68F+Y9pDeDQjKgDSSusDRHN4pv
         d5cWjHIpyWfqnZ+ImVZuSPltQ5Oe1SRCdvpbD1DeGwXptFJ3pil+pXRUkf1et+9sDrey
         ZvCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:message-id:date:user-agent
         :mime-version:content-language:content-transfer-encoding;
        bh=CE1eeNJiBj37bUkImGntaq3L5S61ylilJxOSAlzYwhI=;
        b=b6i1VXLMjDUoO16bdyTq3NGijx0NEdI5C2YL9NoHNmGMKJ3eNBPbjYeGcvzUipI5oa
         ykBoxhx8X1s6bS3C3p3XdNbkCd6oY7f/NGvcpRUjowKwoqr3tEblPc+l/eztZxK4jusL
         4OiCDadjQszJbaqqbnVFedp7zu5rU61b31DnI2Co143/PgzpEiuIQECyb/WSYtCS9vx/
         r1ra/n2p7Gr/rbb/VSZ8DyrRs5DvtpZCvQcfDilW+lAHgv7PUz3Q+JjONA3iC874r3ek
         y+DhSVGHHMxWdyA9EiDQwV+4Ss8eurtNjDdvadAsORmZDQIkYv2AYNyYOCXQNx3uC/3Z
         Gvxg==
X-Gm-Message-State: AOAM531ogrN8WBnMsPTmqLZ6EuR5ccYQ6rhzcoJx3SPDkJDGdO1LgSWq
	9kGgcYP2mX2wJ2uAhXNAQ+LthIGA/g4=
X-Google-Smtp-Source: ABdhPJzEfzMiUu6PsFxAecfj8rNgrOSZpmoa41W5Y2fbJ7MJOTXuz4Q/M0dCHvkcCcHUl4X26lnKxQ==
X-Received: by 2002:a05:620a:2051:: with SMTP id d17mr3458079qka.403.1610107695210;
        Fri, 08 Jan 2021 04:08:15 -0800 (PST)
Received: from [192.168.1.105] (047-014-247-068.res.spectrum.com. [47.14.247.68])
        by smtp.googlemail.com with ESMTPSA id y17sm4466167qki.48.2021.01.08.04.08.14
        for <submit@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Fri, 08 Jan 2021 04:08:14 -0800 (PST)
To: submit@bugs.devuan.org
From: fsmithred <fsmithred@gmail.com>
Subject: No grub menu on uefi install
Message-ID: <985e750c-c10f-6fb0-d429-15d8fb83e7f7@gmail.com>
Date: Fri, 8 Jan 2021 07:08:13 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: devuan-installer

Build#171 netinstall-amd64.iso

UEFI netinstall boots to grub prompt. It's possible to manually boot from
there.

Running grub-install and update-grub both complete without error, grub.cfg
is created, bootloader in /boot/efi/EFI/devuan is created, system still
boots to grub prompt.

This bug is a result of the fix for bug#411 and bug#452
https://bugs.devuan.org/cgi/bugreport.cgi?bug=411
https://bugs.devuan.org/cgi/bugreport.cgi?bug=452

grub-efi signed needs the bootloader to be in /boot/efi/EFI/debian/
Setting ID=devuan in /etc/os-release breaks this - grub can't find the
boot menu.
Switching to the unsigned grub would exclude use of secure boot.

Setting ID=debian and running update-grub fixes the problem of the missing
boot menu but then it says "Debian". This can be changed to "Devuan" by
editing /etc/default/grub, but there's no easy way to do that in the
installer.

I don't know what the solution is.

fsmithred


Acknowledgement sent to fsmithred <fsmithred@gmail.com>:
New bug report received and forwarded. Copy sent to Ralph Ronnquist <ralph.ronnquist@gmail.com>. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, Ralph Ronnquist <ralph.ronnquist@gmail.com>:
bug#535; Package devuan-installer. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun, 22 May 2022 18:39:02 UTC