mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
c/sd1b93eacauses substantial functional regressions in pygrub's ability to parse bootloader configuration files. c/sd1b93eaitself changed an an interface which previously used exclusively integers, to using strings in the case of a grub configuration with explicit default set, along with changing the code calling the interface to require a string. The default value for "default" remained as an integer. As a result, any Extlinux or Lilo configuration (which drives this interface exclusively with integers), or Grub configuration which doesn't explicitly declare a default will die with an AttributeError when attempting to call "self.cf.default.isdigit()" where "default" is an integer. Sadly, this AttributeError gets swallowed by the blanket ignore in the loop which searches partitions for valid bootloader configurations, causing the issue to be reported as "Unable to find partition containing kernel" We should explicitly check type of "default" in image_index() and process it appropriately. Reported-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
pygrub is a grub-like bootloader for xen. This tool is to use to boot domU images. To compile pygrub, you will need the following packages installed: 1) Libraries of ext2fs, which is the following package (depend on your Linux distribution): - e2fslibs-dev on Debian based distributions (Debian, Ubuntu, Linspire, Libranet, Xandros, etc...) - e2fsprogs-devel on RedHat, Fedora Core - libext2fs2-devel on Mandriva/Mandrake - e2fsprogs on Gentoo 2) Libraries of reiserfs, which is the following package (depend on your Linux distribution): - libreiserfs-dev on Debian based distributions (Debian, Ubuntu, Xandros, Libranet, Xandros, etc...) - progsreiserfs-devel on RedHat - progsreiserfs on Gentoo