Hi!
Devices where the filesystem is in whole disk are common nowadays [1]; I
don't think it's a good idea to require that a filesystem is in a partition
in order to access it.
See attached patch. Any comments?
[1] for example, debian provides usb images of the debian-installer with a
fat filesystem and no partitions:
http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz
--
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 /.)
2007-10-05 Robert Millan <[EMAIL PROTECTED]>
* normal/misc.c (grub_normal_print_device_info): Do not require that
device is a partition.
diff -ur grub2/normal/misc.c grub2.disk_fs/normal/misc.c
--- grub2/normal/misc.c 2007-07-22 01:32:29.000000000 +0200
+++ grub2.disk_fs/normal/misc.c 2007-10-05 11:55:29.000000000 +0200
@@ -40,7 +40,7 @@
dev = grub_device_open (name);
if (! dev)
grub_printf ("Filesystem cannot be accessed");
- else if (! dev->disk || ! dev->disk->has_partitions || dev->disk->partition)
+ else
{
char *label;
grub_fs_t fs;
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel