WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] PV-GRUB - Does not read partition-less disk

On Fri, Sep 12, 2008 at 12:01:43PM -0300, Marco Sinhoreli wrote:
> | grubdom> root (hd0,0)
> | Filesystem type is ext2fs, partition type 0x83
> |
> | grubdom> configfile (hd0,0)/boot/grub/menu.lst

So we are at the beginning. You have a partition table on the device, I
don't.

Anyway, I found it. It is buried in the filesystem modules of grub in
the mount hook. It checks for
| ((current_drive & 0x80) || (current_slice != 0))
|    && (current_slice != PC_SLICE_TYPE_EXT2FS)
|    && (current_slice != PC_SLICE_TYPE_LINUX_RAID)
|    && (! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_EXT2FS))
|    && (! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_OTHER))

Which reads as:
- If device is a harddisk,
- or it is a slice with none matching type,
then abort.

It simply refuses to find filesystems on the whole disk. If I remove the
current_disk check it is able to find the filesystem.

Bastian

-- 
To live is always desirable.
                -- Eleen the Capellan, "Friday's Child", stardate 3498.9

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel