control: reassign -1 grub-installer
control: tags -1 +patch

Hi,

On Tue, 11 Oct 2016 12:13:33 +0200 "Jonathan Quick" <j...@hartrao.ac.za> wrote:
> > Probably this part of grub-installer is the problem:
> >
> >     
> > /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]*)
> >
> >
> > /dev/[hsv]d[a-z0-9] will match /dev/sda through /dev/sdz, but NOT /dev/sdak.
> >
> > If it added /dev/sd[a-z][a-z] as well, it should work for you.
> >
> > So maybe:
> >     
> > /dev/[hsv]d[a-z0-9]|/dev/sd[a-z][a-z]|/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]*)
> >
> > Not sure if other places need fixing too.
> 
> Having edited grub-installer in-place during the install process, I can
> confirm that the above change is sufficient to fix the problem and the
> installation then completes normally.

 More tiny fix is enough for this issue. I've confirmed it by 
 s%/dev/[hsv]d[a-z0-9]%/dev/[hsv]d[a-z0-9]*% - adding one "*" in
 VirtualBox (it's easy to create such environment).
--- grub-installer.orig	2017-02-03 22:51:57.598613756 +0900
+++ grub-installer	2017-02-04 00:19:37.085153540 +0900
@@ -254,7 +254,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/nvme[0-9]*n[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"
 	;;
     *)

Reply via email to