On Mon, Sep 01, 2008 at 10:45:53PM +0800, Harald Welte wrote:
> Package: grub
> Version: 0.97-46
> 
> When grub-install is invoked to install the grub bootloader onto a SD/MMC
> card, it fails because the grub-install script does not include regular
> expressions for linux SD/MMC devices called /dev/mmcblkN

Such regular expressions are no longer used.  grub-probe is used instead, but
it's supposed to support that already.

Try (re-)generating your device.map (using grub-mkdevicemap from latest
grub-common).

> Index: grub/util/grub-install.in
> ===================================================================
> --- a/util/grub-install.in    (revision 1843)
> +++ b/util/grub-install.in    (working copy)
> @@ -97,11 +97,13 @@
>      case "$host_os" in
>      linux*)
>       tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' \
> +                               -e 's%\(mmcblk[0-9]*\)p[0-9]*$%\1%' \
>                                 -e 's%\(d[0-9]*\)p[0-9]*$%\1%' \
>                                 -e 's%\(fd[0-9]*\)$%\1%' \
>                                 -e 's%/part[0-9]*$%/disc%' \
>                                 -e 's%\(c[0-7]d[0-9]*\).*$%\1%'`
>       tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \
> +                               -e 's%.*/mmcblk[0-9]*p\([0-9]*\)$%\1%' \
>                                 -e 's%.*d[0-9]*p%%' \
>                                 -e 's%.*/fd[0-9]*$%%' \
>                                 -e 's%.*/floppy/[0-9]*$%%' \

See debian/patches/use_grub-probe_in_grub-install.diff

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to