All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] do not require that device is a partition
@ 2007-10-05  9:59 Robert Millan
  2007-10-05 12:30 ` Robert Millan
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Millan @ 2007-10-05  9:59 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]


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 /.)

[-- Attachment #2: disk_fs.diff --]
[-- Type: text/x-diff, Size: 580 bytes --]

2007-10-05  Robert Millan  <rmh@aybabtu.com>

	* 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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-15 11:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05  9:59 [PATCH] do not require that device is a partition Robert Millan
2007-10-05 12:30 ` Robert Millan
2007-10-06 20:16   ` Robert Millan
2007-10-14 15:49     ` Robert Millan
2007-10-15  7:59       ` Marco Gerards
2007-10-15 11:00         ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.