Devuan logs - #110, boring messages


Message sent to devuan-bugs@lists.dyne.org, Olaf Meeuwissen <paddy-hack@member.fsf.org>, Daniel Reurich <daniel@centurion.net.nz>:


Subject: bug#110: devuan-installer: GRUB installation fails on NMVe drives
From: Olaf Meeuwissen <paddy-hack@member.fsf.org>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Date: Sun, 25 Jun 2017 15:39:13 +0900

--=-=-=
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"
 }

--=-=-=--


Message sent:


From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: Olaf Meeuwissen <paddy-hack@member.fsf.org>
Subject: bug#110: Acknowledgement (devuan-installer: GRUB installation fails on NMVe drives)

Thank you for the problem report you have sent regarding Devuan.
This is an automatically generated reply, to let you know your message has
been received.  It is being forwarded to the developers mailing list for
their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
   Olaf Meeuwissen <paddy-hack@member.fsf.org>
(after having been given a bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 Daniel Reurich <daniel@centurion.net.nz>

If you wish to submit further information on your problem, please send
it to 110@bugs.devuan.org (and *not* to
submit@bugs.devuan.org).

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

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.

Devuan Bugs Owner
(administrator, Devuan bugs database)


Message received at control@bugs.devuan.org:


Received: (at control) by bugs.devuan.org; 7 Dec 2017 21:50:06 +0000
Date: Thu, 7 Dec 2017 21:44:51 +0000
From: KatolaZ <katolaz@freaknet.org>
To: control@bugs.devuan.org
Subject: ...


--1p/8YZFQDK16REep
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

tags 133 ascii
tags 140 jessie
tags 90 jessie
tags 43 jessie
tags 167 ascii
tags 126 ascii
tags 151 jessie
tags 138 jessie
tags 117 jessie
tags 117 ascii
tags 127 jessie
tags 120 ascii
tags 20 jessie
tags 148 jessie
tags 148 ascii
tags 149 ascii
tags 149 jessie
tags 135 ascii
tags 136 jessie
tags 134 jessie
tags 134 ascii
tags 143 ascii
tags 143 jessie
tags 54 jessie
tags 54 ascii
tags 154 ascii
tags 154 jessie
tags 48 jessie
tags 87 ascii
tags 113 jessie
tags 141 ascii
tags 41 jessie
tags 119 jessie
tags 164 ascii
tags 64 jessie
tags 163 ascii
tags 158 jessie
tags 58 ascii
tags 58 jessie
tags 110 jessie
tags 160 jessie
tags 166 jessie
tags 99 jessie
tags 130 ascii
tags 130 jessie
tags 107 ascii
tags 162 ascii
tags 106 ascii
tags 155 jessie
tags 55 jessie
tags 131 jessie
tags 152 ascii
tags 79 jessie
tags 137 jessie
tags 36 jessie
tags 37 jessie
tags 145 ascii
tags 45 jessie
tags 49 jessie
close 30
close 68
close 64
merge 154 148
merge 90 22

--1p/8YZFQDK16REep
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAloptlMACgkQXyCzrgtfBi8qNwCffM2eYmJMgBkX3BOmYIkZZeAV
328AoIgAr1HPmqZKmB/wj/IgdUhbjAm4
=lI+l
-----END PGP SIGNATURE-----

--1p/8YZFQDK16REep--


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: Mon, 21 Oct 2019 14:39:01 UTC