Bug#423022: Bug#422851: grub-pc: Configuration fails if there is no
/dev/fd0
Sam Morris
sam at robots.org.uk
Wed May 9 14:02:48 UTC 2007
On Wed, 2007-05-09 at 15:58 +0200, Robert Millan wrote:
> On Wed, May 09, 2007 at 12:37:03PM +0100, Sam Morris wrote:
> > Here's a better backtrace, obtained one I patched the build system to
> > respect DEB_BUILD_OPTIONS=noopt:
> >
> > #0 0x08048eb9 in probe (path=0xbfdd6e50 "/boot/grub")
> > at /tmp/x/grub2-1.95+20070507/util/i386/pc/grub-probe.c:129
> > device_name = 0x806a138 "md0"
> > drive_name = 0x806e408 "md0"
> > dev = (grub_device_t) 0x806a028
> > fs = (grub_fs_t) 0x805a315
> > #1 0x08049433 in main (argc=5, argv=0xbfdd52b4)
> > at /tmp/x/grub2-1.95+20070507/util/i386/pc/grub-probe.c:281
> > dev_map = 0x806a008 "/boot/grub/device.map"
> > path = 0xbfdd6e50 "/boot/grub"
> >
> > The segfault happens because dev->disk->partition == NULL
>
> Can you confirm that the attached patch converts the segfault into a proper
> error?
Yes, "grub-probe: error: Cannot detect partition map for md0". The
message doesn't appear when grub-pc's postinst is run, however.
> Also, what is the result of "parted /dev/md0 print" ?
Disk /dev/md0: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00kB 300GB 300GB ext3
Information: Don't forget to update /etc/fstab, if necessary.
--
Sam Morris
http://robots.org.uk/
PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20070509/7ac02a99/attachment.pgp
More information about the Pkg-grub-devel
mailing list