Note that you might not have to depend on gdisk. On a GPT disk, fdisk
will choke like this:

root@scapa:~# fdisk -l /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk 
doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 180.0 GB, 180045766656 bytes
255 heads, 63 sectors/track, 21889 cylinders, total 351651888 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   351651887   175825943+  ee  GPT

So it can be used (although not so cleanly) to detect what to do. I'm
not sure extlinux-install should die in such a situation. It could just
install a gptmbr.bin instead (although it would need to have the correct
file installed as well, or depend on syslinux-common).

Regards,
-- 
Yves-Alexis

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to