[Top][All Lists]

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

Re: Conditional Statement in Grub 2

From: Robert Millan
Subject: Re: Conditional Statement in Grub 2
Date: Thu, 3 Jan 2008 12:40:41 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Jan 03, 2008 at 01:11:56AM -0000, Antonio Dupont wrote:
> Hello,
> I apologize if this is the wrong list, but this is the list I have found
> through my searches.  Please tell me where to go if this is not the proper 
> place.
> I would like to have grub do a conditional statement similar to this:
> if file_name on /dev/cdrom matches file_name on /dev/sda1 (USB device) then
> boot Linux else boot Windows 

You can do this with GRUB, the syntax I don't recall exactly but it is

> I'm using CentOS 5.0 and if I can do it with Grub 0.97 that comes with the
> distro that would be great.  I can also upgrade if needed.

GRUB 2 only.

Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)

reply via email to

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