Devuan bug report logs - #110
devuan-installer: GRUB installation fails on NMVe drives

Package: devuan-installer; Reported by: Olaf Meeuwissen <[email protected]>; Keywords: jessie; Done: "Ralph Ronnquist (rrq)" <[email protected]>; Maintainer for devuan-installer is (unknown).

Message received at [email protected]:


Received: (at 110-done) by bugs.devuan.org; 17 Jan 2020 13:20:03 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
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, 17 Jan 2020 13:20:03 +0000 (UTC)
Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176])
	(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 257BDF60C61
	for <[email protected]>; Fri, 17 Jan 2020 14:11:34 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.b="WNBkbteC";
	dkim-atps=neutral
Received: by mail-pg1-f176.google.com with SMTP id x7so11658984pgl.11
        for <[email protected]>; Fri, 17 Jan 2020 05:11:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=to:from:subject:autocrypt:message-id:date:user-agent:mime-version;
        bh=1KKgX8Q+XPd6G/qgkjBYBNOhMLhu6i78bocKH5u0Fow=;
        b=WNBkbteCrQEh104Ufe42nz76Fgt+DvELejsAE9LwMRlNNiwJfm9S2qyp9igrc7Mo0M
         jrwJamwuo7vcmUdzkS1jO+mtB5CxqCNqMDtis5AFL5ytNu4XuY01xk9MCIyv4D1+RIll
         UVUFa+PZTODWWf8IaAS7P3Y+92Qa2F8N0ZCcWyxQPCHsqGp419Jp1A+Uk6Xo7VeEJMwf
         BpusIrqCxWZHq2OZQDeOEPQHBX/UcO2dpugAXd2YX0ju7k1BxAO9J/jXQEO47R3lWvBD
         CDamLP1IZIv96NvFr+TNov6dmGRGHOBqtnnDtlhjOjA8InA/GV6pCQIRV3cp+oX6cJTZ
         FPXw==
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:autocrypt:message-id:date
         :user-agent:mime-version;
        bh=1KKgX8Q+XPd6G/qgkjBYBNOhMLhu6i78bocKH5u0Fow=;
        b=CHX9ZX9pBL/9aRsLVJWSzN+EtCBmk9CubMJNYd+MX9b1QrgHJNndfRZXywriM4p4gP
         rBKeWXdcq9/qVeK/UuBCkJVuh0MhfevixZe8fKZHZjV9vDo2Nf82fDVJXfLem7a8bchi
         fdNbBISfl6FwDxCH8Tc19DOEQ80+ubDRPLEJG+P64fSVnodqWzskUMWPC9hDEnAULdxE
         QVd8fG6wNim9MgSnEiVQgjfs+xMD6/rNol1nk8KKNUKf2XDvtga/MSmrNJ4q4gkFOi35
         vkulyk1KpVEtQPsOVyPn4/sc2A+BLwDMe6hrH+BAlBaoca0iAgQ40kB8eD2OGGm8Bzlc
         v4HQ==
X-Gm-Message-State: APjAAAWWVrC0P3R93Gzr0LgIPL4Hk5kqRCKcCcVWpyn0erLUnLKQ6Zi4
	ZOx0QhIfJGtxvgrd94vgKvWeHgqc
X-Google-Smtp-Source: APXvYqwQPrBHIzyMgCgkuFU4MhSWwbVrqEhdG17d310SO/EEXs/22T/5BGQGeD06mlDov76lRw3pbQ==
X-Received: by 2002:a63:7985:: with SMTP id u127mr44472509pgc.169.1579266692170;
        Fri, 17 Jan 2020 05:11:32 -0800 (PST)
Received: from [192.168.103.11] ([202.53.56.203])
        by smtp.gmail.com with ESMTPSA id 80sm29841330pfw.123.2020.01.17.05.11.30
        for <[email protected]>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Fri, 17 Jan 2020 05:11:31 -0800 (PST)
To: [email protected]
From: "Ralph Ronnquist (rrq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j2H8Vnz0if
 URn28VXeyTSHfOyDURMmpoU6xn3BiZQKt6QQ0sX9Q7EhBdzscb2hurujemzaEhqWs6V4Oqrr
 tGnjd4079subCik/L7z8CJKhqnWKxsIrGg9ZwtMeAgVSzin+wFrMic7yfxcpIG2C92vEzw4S
 PS6G2vpfs3a5O1TqrCnIcw/YBzhYvuIumwp5O4mucNPxodgE+Scvrv8AEQEAAcLAXwQYAQIA
 CQUCWXB/1gIbDAAKCRBwKFulzygLpBBMCACyCBZI0fc+LaIwIIjdv/XIhu9/7siyuMuoKimd
 aWgQ52CXcfw5GZFiR9z0EE/1tM9Y0RwhHF8mu5Imn4XPN6AXOiB9ENm6fm0m0vVB0/0eHLts
 kGRuhyWHXbohTkRemxy9NBF3EH/UwqJVVxpBJyKxy+qMS0AXSlDMZgWjQ9AsaiZcgaoV8AW4
 zECYkd6dSNQbYi69jsX5EDzV8qKZzOh/NZXmm0VKCgZb3JFBrsdtGoLPtZaV904+9T+T4jib
 H0AdeUoDRu2QyxUmS+iD2xcQBCxLa+FTzm4HdZ9SfnBXl3i6QvEBQSxY1jzW4zBpPY7Mgmnn
 WF1G5VIqEDMggu2v
Message-ID: <[email protected]>
Date: Sat, 18 Jan 2020 00:11:21 +1100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.2.2
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="faEQJKQUMX659YMShwFc3uDeN3zCkuT02"
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

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--faEQJKQUMX659YMShwFc3uDeN3zCkuT02
Content-Type: multipart/mixed; boundary="Cv0wCIJq8mVzP0DHHcjjFT7fCo0ZBhc1x"

--Cv0wCIJq8mVzP0DHHcjjFT7fCo0ZBhc1x
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

Resolved for beowulf ISOs

Ralph.


--Cv0wCIJq8mVzP0DHHcjjFT7fCo0ZBhc1x--

--faEQJKQUMX659YMShwFc3uDeN3zCkuT02
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE6T1xZ6T1+p6f7Ul3cChbpc8oC6QFAl4hsnkACgkQcChbpc8o
C6S8HwgAphvbP+JR0LDihObLYa4GrpfP3+0WY/R2QakYQUO1uZWfVDehkNMD9km+
3FWBX7ZcW/bUWQLtBq6QECLqObuY4Fcc13QZV3L2VWfB68doBVTBHc+M8xGNk8Ne
SmmTLPbW53i0E1xx8emB4trGAkeuqdyAcnu9qkLbHrnIogAr9nOhcnDirccBg7ih
zGe1zm5oEKcN4aH+Em73idrhnVGztFSXdRg2C+VmHx4r7WpqFKAMqud/YRGj3nds
Q4Xh7H3m6TfWBrorG9Mkc6k6Xnx9WNAWU11qQx4McnNK7mOm01hijlpYcMkxUlnQ
tGV+CVAK6wmBy1dNfhjBYzZrRmapPQ==
=8f+s
-----END PGP SIGNATURE-----

--faEQJKQUMX659YMShwFc3uDeN3zCkuT02--

Notification sent to Olaf Meeuwissen <[email protected]>:
bug acknowledged by developer. Full text available.
Reply sent to "Ralph Ronnquist (rrq)" <[email protected]>:
You have taken responsibility. Full text available.
Tags added: jessie Request was from KatolaZ <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 25 Jun 2017 07:00:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from mail.dyne.org [178.62.188.7]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Sun, 25 Jun 2017 09:00:02 +0200 (CEST)
Received: from mo-sw.mose-mail.jp (mo-sw1505-0.mose-mail.jp [210.130.202.8])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by tupac2.dyne.org (Postfix) with ESMTPS id CB2EA18DFCF
	for <[email protected]>; Sun, 25 Jun 2017 06:58:37 +0000 (UTC)
Received: by mo-sw.mose-mail.jp (mose-mo-sw1505) id v5P6wFH9007759; Sun, 25 Jun 2017 15:58:15 +0900
Received: from quark (localhost [127.0.0.1])
	by mbox.mose-mail.jp (mose-mbox1504) id v5P6wEQZ007809
	for <[email protected]>; Sun, 25 Jun 2017 15:58:14 +0900
Received: from olaf (uid 1000)
	(envelope-from [email protected])
	id 69fc2
	by quark (DragonFly Mail Agent v0.9);
	Sun, 25 Jun 2017 15:58:14 +0900
From: Olaf Meeuwissen <[email protected]>
To: Devuan Bug Tracking System <[email protected]>
Subject: devuan-installer: GRUB installation fails on NMVe drives
Date: Sun, 25 Jun 2017 15:39:13 +0900
X-Debbugs-CC: Olaf Meeuwissen <[email protected]>
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Status: No, score=0.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,
	RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY
	autolearn=disabled version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2

--=-=-=
Content-Type: text/plain

Package: devuan-installer
Severity: important

Dear Maintainer,

Installing with the devuan_jessie_1.0.0_amd64_NETINST.iso installer
worked like a charm until it tried to install GRUB2.  That failed with

  main-menu[226]: WARNING **: Configuring 'grub-installer' failed with error code 1
  main-menu[226]: WARNING **: Menu-item 'grub-installer' failed.
  main-menu[226]: INFO: Modifying debconf priority limit from 'high' to 'medium'
  debconf: Setting debconf/priority to medium
  lilo-installer: LILO not usable on EFI PCs withouBIOS compatibility: use grub-efi

Comparing with the Debian 8.8.0 and 9.0.0 installers, I found that the
8.8.0 version displayed the same behaviour.  The installer for 9.0.0
worked fine though.

Comparing the grub-installer.udebs I noticed that NVMe drives are not
supported in the Devuan installer.  The attached patch worked fine for
me (UEFI install, encrypted LVM with separate partitions for /home, /var
and /tmp).  I "applied" the patch by executing a shell and editing the
/usr/bin/grub-installer with nano.

The patch as well as some other fixes are included in version 1.140 of
the grub-installer udeb.

# I'm aware of #23 but as that had zero detail of what the problem was I
# decided to submit this as a separate issue.  As this only affects NVMe
# drives, I figured important was good enough a priority.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join

--=-=-=
Content-Type: text/x-diff
Content-Disposition: attachment; filename=grub-installer.patch
Content-Description: Add NVMe support to grub-installer

--- grub-installer.orig	2017-06-25 15:15:37.706091061 +0900
+++ grub-installer	2017-06-25 15:16:47.118435258 +0900
@@ -134,7 +134,7 @@
 # This should probably be rewritten using udevadm or similar.
 device_to_disk () {
 	echo "$1" | \
-		sed 's:\(/dev/\(cciss\|ida\|rs\)/c[0-9]d[0-9][0-9]*\|/dev/mmcblk[0-9]\|/dev/\(ad\|ada\|da\)[0-9]\+\|/dev/[hs]d[0-9]\+\|/dev/[a-z]\+\).*:\1:'
+		sed 's:\(/dev/\(cciss\|ida\|rs\)/c[0-9]d[0-9][0-9]*\|/dev/mmcblk[0-9]\|/dev/nvme[0-9][0-9]*n[0-9][0-9]*\|/dev/\(ad\|ada\|da\)[0-9]\+\|/dev/[hs]d[0-9]\+\|/dev/[a-z]\+\).*:\1:'
 }
 
 # Run update-grub in $ROOT
@@ -252,7 +252,7 @@
     /dev/mapper)
 	disc_offered_devfs="$bootfs"
 	;;
-    /dev/[hsv]d[a-z0-9]|/dev/xvd[a-z]|/dev/cciss/c[0-9]d[0-9]*|/dev/ida/c[0-9]d[0-9]*|/dev/rs/c[0-9]d[0-9]*|/dev/mmcblk[0-9]|/dev/ad[0-9]*|/dev/da[0-9]*)
+    /dev/[hsv]d[a-z0-9]|/dev/xvd[a-z]|/dev/cciss/c[0-9]d[0-9]*|/dev/ida/c[0-9]d[0-9]*|/dev/rs/c[0-9]d[0-9]*|/dev/mmcblk[0-9]|/dev/nvme[0-9]*n[0-9]*|/dev/ad[0-9]*|/dev/da[0-9]*)
 	disc_offered_devfs="$prefix"
 	;;
     *)
@@ -909,6 +909,11 @@
 			part="$(echo "$1" | sed 's,/dev/mmcblk[0-9]\+p\([0-9]\+\),\1,')"
 			[ "$part" != "$1" ] || part=
 			;;
+		/dev/nvme*n*p*)
+			disk="$(echo "$1" | sed 's,\(/dev/nvme[0-9]\+n[0-9]\+\).*,\1,')"
+			part="$(echo "$1" | sed 's,/dev/nvme[0-9]\+n[0-9]\+p\([0-9]\+\),\1,')"
+			[ "$part" != "$1" ] || part=
+			;;
 	esac
 	echo "$disk $part"
 }

--=-=-=--


Acknowledgement sent to Olaf Meeuwissen <[email protected]>:
New bug report received and forwarded. Copy sent to Olaf Meeuwissen <[email protected]>, Daniel Reurich <[email protected]>.

Your message specified a Severity: in the pseudo-header, but the severity value important was not recognised. The default severity normal is being used instead. The recognised values are: critical, grave, normal, minor, wishlist.

Full text available.


Report forwarded to [email protected], Olaf Meeuwissen <[email protected]>, Daniel Reurich <[email protected]>:
bug#110; 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 <[email protected]>.
Last modified: Sat, 30 Nov 2024 22:39:01 UTC