From: "Sven Köhler" <sven.koehler@gmail.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: pygrub fails with NameError: name 'fs' is not defined
Date: Sat, 10 May 2014 03:23:46 +0300 [thread overview]
Message-ID: <536D7192.2080708@gmail.com> (raw)
In-Reply-To: <536D6EF2.9020603@gmail.com>
Am 10.05.2014 03:12, schrieb Sven Köhler:
> Now the issue here seems to be that boot sector of /dev/md4 is a little
> screwed up. Namely, fdisk -l /dev/md4 seems to report an empty partition
> table. This is not the case for other domU I have. Maybe, the
> boot-sector is to MBR like after running grub-install /dev/xvda1 inside
> the domU. Or maybe after trying LILO. I don't know.
Yes, it was GRUB, it seems. The first sector of md4 contained GRUB code
and also the MBR signature (0x55 0xAA at offset 510) and so pygrub must
have thought that he's dealing with an MBR partition table. I should
point out, that the partition table was empty (all zeros) and this must
have lead to the undefined fs variable. The case of an empty partition
table seems to lead to this bug.
Regards,
Sven
next prev parent reply other threads:[~2014-05-10 0:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-10 0:12 pygrub fails with NameError: name 'fs' is not defined Sven Köhler
2014-05-10 0:23 ` Sven Köhler [this message]
2014-05-10 1:18 ` [PATCH] tools/pygrub: Fix error handling if no valid partitions are found Andrew Cooper
2014-05-12 14:53 ` Ian Jackson
2014-05-22 15:50 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=536D7192.2080708@gmail.com \
--to=sven.koehler@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.