[Top][All Lists]

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

Re: Selecting the last partition automatically

From: Benoit Donnette
Subject: Re: Selecting the last partition automatically
Date: Thu, 5 Mar 2009 17:38:52 +0100 (CET)
User-agent: SquirrelMail/1.4.11

Other idea : use of the (-1) index from the Python language.

> On Thu, Mar 5, 2009 at 10:18 AM, Felix Zielcke <address@hidden> wrote:
>> Am Donnerstag, den 05.03.2009, 10:12 -0500 schrieb Harvey Chapman:
>> > Is there a way to always select the last partition on a disk? I'd like
>> > to boot the same menu.lst on different machines and I know that I
>> > always want the last partition on the first disk.
>> >
>> > Is there a way to do this?
>> No there isn't.
> Would it be possible to do it in code kind of like how the "find" command
> works? That is, use the drive specified and keep calling next_partition()
> until the last partition is reached? I saw a comment in the code that
> next_partition() may not be reliable. I'm perfectly willing to modify my
> local copy of grub to do this, but I wanted to sound the idea off of the
> existing developers to make sure it is possible. Perhaps I could add a
> special partition number, '$' (to borrow from regular expression syntax),
> which could mean last partition?
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-grub

reply via email to

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