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

Package: devuan-installer; Reported by: Olaf Meeuwissen <>; Keywords: jessie; dated Sun, 25 Jun 2017 07:03:02 UTC; Maintainer for devuan-installer is Daniel Reurich <>.

Tags added: jessie Request was from KatolaZ <> to Full text available.

Message received at

Received: (at submit) by; 25 Jun 2017 07:00:02 +0000
From: Olaf Meeuwissen <>
To: Devuan Bug Tracking System <>
Subject: devuan-installer: GRUB installation fails on NMVe drives
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              
 Join the Free Software Foundation    

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/[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]*)
@@ -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=
+			;;
 	echo "$disk $part"


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

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, Olaf Meeuwissen <>, Daniel Reurich <>:
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 <>.
Last modified: Thu, 18 Jan 2018 01:39:02 UTC