bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub-install fix for problem with /dev/sdp and /dev/sdaa


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: grub-install fix for problem with /dev/sdp and /dev/sdaa
Date: Sat, 13 Apr 2013 02:08:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 13.04.2013 01:23, David Peet wrote:

> Hi,
> I have a CentOS 6.3 based system and the grub-install script
> does not work for devices named /dev/sdp or /dev/sdp/<number>/,
> and they also do not work with devices named /dev/sd/<letter><letter>/
> and /dev/sd/<letter><letter><number> /like /dev/sdaa  and /dev/sdaa1
> which is the next drive after /dev/sdz.

There is no such code chunk in upstream at all. It must be some local
patch by your distro. What is the local patch? What is its goal?

> 
> The fix is easy.
> Attached is the patch file, and also here is the actual code in case
> attachments don't get through.
> 
> Thanks
> -David Peet
> --- grub-install2013-04-12 15:25:59.843730959 -0700
> +++ grub-install.fixed2013-04-12 15:27:32.272648482 -0700
> @@ -102,8 +102,8 @@
>      linux*)
>   tmp_disk=`echo "$1" | grep -v '/mapper/control$' |
>   grep -v '/mapper/[[:alnum:]]\+-[[:alnum:]]\+$' | uniq |
> - sed -e 's%\([shv]d[a-z]\)[0-9]*$%\1%' \
> -  -e 's%\(d[0-9]*\)p[0-9]*$%\1%' \
> + sed -e 's%\([shv]d[a-z][a-z]*\)[0-9]*$%\1%' \
> +  -e 's%\(d[0-9]*\)p[0-9][0-9]*$%\1%' \
>    -e 's%\(fd[0-9]*\)$%\1%' \
>    -e 's%/part[0-9]*$%/disc%' \
>    -e 's%\(c[0-7]d[0-9]*\).*$%\1%' \
> @@ -112,7 +112,7 @@
>    -e 's%\(/mapper/[[:alpha:]]\+_[[:alpha:]]\+\)[[:digit:]]\+$%\1%'`
>   tmp_part=`echo "$1" | grep -v '/mapper/control$' |
>   grep -v '/mapper/[[:alnum:]]\+-[[:alnum:]]\+$' | uniq |
> - sed -e 's%.*/[shv]d[a-z]\([0-9]*\)$%\1%' \
> + sed -e 's%.*/[shv]d[a-z][a-z]*\([0-9]*\)$%\1%' \
>    -e 's%.*d[0-9]*p%%' \
>    -e 's%.*/fd[0-9]*$%%' \
>    -e 's%.*/floppy/[0-9]*$%%' \
> 
> 
> 
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-grub



Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]