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

Package: devuan-installer; Maintainer for devuan-installer is Ralph Ronnquist <ralph.ronnquist@gmail.com>;

Reported by: fsmithred <fsmithred@gmail.com>

Date: Fri, 8 Jan 2021 12:18:01 UTC

Severity: normal

Done: Ralph Ronnquist <ralph.ronnquist@gmail.com>

Full log


Message #10 received at 535@bugs.devuan.org (full text, mbox, reply):

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.

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Jan 21 11:05:20 2022;