xrile / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

"iftitle" and partition types #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi. This feature is exactly what I was looking for, I'm having fun constructing 
a small versatile menu script that will boot specific loaders based on what 
files it finds in a partition (basically a bunch of 'ls' checks), or boot the 
mbr of a specific disk or partition if it exists (I use 'geometry' for checking 
the existence of disks and 'parttype' to check for partitions).

My question comes now, is it possible to somehow have it compare specific types 
of partitions? For example, if I have an hfs+ partition in which OSX is 
installed, obviously I wouldn't be able to mount it so I can't do any specific 
file checks in it. Is it possible to do something like:

iftitle [parttype (hdx,y) == 0x##] Boot HFS Partition

where that menu entry would only appear if the x,y partition is of type ##?

Is this something your latest Grub4Dos can already do and I just don't know how 
to? Right now, I can't get it to distinguish an hfs+ from any other one in an 
iftitle statement, I can only get it to know it's actually there by using:

iftitle [parttype (hdx,y)] ...

Either way, it's not a critical issue, thanks a lot for this!

Original issue reported on code.google.com by Quicksa...@gmail.com on 26 Dec 2011 at 11:29

GoogleCodeExporter commented 8 years ago
iftitle [checkrange 0x## parttype (hdx,y)] Boot HFS Partition.

...

Wish!

Original comment by chenall.cn on 27 Dec 2011 at 2:54

GoogleCodeExporter commented 8 years ago
Thanks, that works perfectly.

Original comment by Quicksa...@gmail.com on 27 Dec 2011 at 9:12