Package: xen-utils-4.1 Version: 4.1.4-3+deb7u4 Severity: serious Tags: patch
dom0 running wheezy domU upgraded from wheezy to jessie. The domU doesn't boot any more, errors: Error code: Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /grub/grub.cfg Error parameters: Traceback (most recent call last):, File "/usr/lib/xcp/lib/pygrub.xcp", line 853, in <module>, raise RuntimeError, "Unable to find partition containing kernel", RuntimeError: Unable to find partition containing kernel, The attached one-line patch to dom0 /usr/lib/xen-4.1/lib/python/grub/GrubConf.py fixes the issue This should probably be released in an update to wheezy. References: http://danielpocock.com/xcp-xenserver-and-debian-jessie http://ubuntuforums.org/showthread.php?t=2216358&page=2&p=13006428#post13006428
--- GrubConf.py-wheezy-orig 2015-04-26 08:24:11.597052304 +0000 +++ /usr/lib/xen-4.1/lib/python/grub/GrubConf.py 2015-04-26 08:24:38.025610337 +0000 @@ -425,7 +425,7 @@ if self.commands.has_key(com): if self.commands[com] is not None: - if arg.strip() == "${saved_entry}": + if arg.strip() == "${saved_entry}" or arg.strip() == "${next_entry}": arg = "0" setattr(self, self.commands[com], arg.strip()) else: