Re: Fallback to scanning OF tree if no devaliases

2010-08-09 Thread Lennart Sorensen
On Mon, Aug 09, 2010 at 06:09:10PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > BZR checkout from http://bzr.savannah.gnu.org/r/grub/branches/experimental/ > I'm especially interested in testing on multi-disk config (both my OFW > boxes have only one disk) I will see if I can get that bu

Re: Fallback to scanning OF tree if no devaliases

2010-08-09 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 08/09/2010 05:41 PM, Lennart Sorensen wrote: > On Sun, Aug 01, 2010 at 04:48:04PM +0200, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > >> As I already told on IRC such a behaviour isn't of a good design. A >> simple example is when one add a devalias and then all other disks >> disappear.

Re: Fallback to scanning OF tree if no devaliases

2010-08-09 Thread Lennart Sorensen
On Sun, Aug 01, 2010 at 04:48:04PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > As I already told on IRC such a behaviour isn't of a good design. A > simple example is when one add a devalias and then all other disks > disappear. Moreover in experimental branch I have a solution for such

Re: Fallback to scanning OF tree if no devaliases

2010-08-01 Thread Vladimir 'φ-coder/phcoder' Serbinenko
As I already told on IRC such a behaviour isn't of a good design. A simple example is when one add a devalias and then all other disks disappear. Moreover in experimental branch I have a solution for such a problem: we scan all the devices and then show only the simpliest form. That code just needs

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread Doug Nazar
On 2010-07-29 1:37 PM, Lennart Sorensen wrote: I will try to test it soon, but I just put the machine into production use, so rebooting a lot won't be popular. I will try to test it in the evening. Unfortunately I am going on vacation for a week, so it probably won't be until after that. Than

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread Lennart Sorensen
On Thu, Jul 29, 2010 at 01:08:15PM -0400, Doug Nazar wrote: > On 2010-07-29 11:36 AM, Lennart Sorensen wrote: >> >> I removed the nvalias's and got: >> >> 0> boot /p...@8002200/pci1014,0...@1/sas/d...@2 | > > Can you add this on top? Grub already has support to escape the commas. >

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread David Miller
From: lsore...@csclub.uwaterloo.ca (Lennart Sorensen) Date: Thu, 29 Jul 2010 12:59:08 -0400 > On Thu, Jul 29, 2010 at 09:52:18AM -0700, David Miller wrote: >> From: Doug Nazar >> Date: Thu, 29 Jul 2010 11:57:50 -0400 >> >> > How common is it not to have nvalias's? Is that usual operating >> > pr

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread David Miller
From: Doug Nazar Date: Thu, 29 Jul 2010 11:57:50 -0400 > How common is it not to have nvalias's? Is that usual operating > procedure? FWIW, I've never seen this on a sparc64 system, ever. ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread Doug Nazar
On 2010-07-29 11:36 AM, Lennart Sorensen wrote: I removed the nvalias's and got: 0> boot /p...@8002200/pci1014,0...@1/sas/d...@2 | Can you add this on top? Grub already has support to escape the commas. Just needed to actually do it. I can't really test it here but it didn't b

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread Lennart Sorensen
On Thu, Jul 29, 2010 at 11:57:50AM -0400, Doug Nazar wrote: > I'm guessing the ',' throws everything for a loop. Grub is probably > interpreting it as a partition. Interesting little quirk. Have to think > about how to handle that. Escaping is probably too intrusive. I guess > substitution or

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread Lennart Sorensen
On Thu, Jul 29, 2010 at 09:52:18AM -0700, David Miller wrote: > From: Doug Nazar > Date: Thu, 29 Jul 2010 11:57:50 -0400 > > > How common is it not to have nvalias's? Is that usual operating > > procedure? > > FWIW, I've never seen this on a sparc64 system, ever. So the sparc does not have deva

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread Doug Nazar
On 2010-07-29 11:36 AM, Lennart Sorensen wrote: I removed the nvalias's and got: 0> boot /p...@8002200/pci1014,0...@1/sas/d...@2 | I'm guessing the ',' throws everything for a loop. Grub is probably interpreting it as a partition. Interesting little quirk. Have to think about ho

Re: Fallback to scanning OF tree if no devaliases

2010-07-29 Thread Lennart Sorensen
On Thu, Jul 29, 2010 at 02:21:36AM -0400, Doug Nazar wrote: > Lennart, try giving this patch a whirl. In the case after we scan the > aliases list and we haven't found any block devices it will now try to > scan the entire tree. It kinda worked under OpenBios although I ran into > another bu

Fallback to scanning OF tree if no devaliases

2010-07-28 Thread Doug Nazar
Lennart, try giving this patch a whirl. In the case after we scan the aliases list and we haven't found any block devices it will now try to scan the entire tree. It kinda worked under OpenBios although I ran into another bug where it can't open a device path that it gave me for the pci ide co