[Vmdebootstrap-devel] Bug#786767: vmdebootstrap: i386 arch kernel package not found

Neil Williams codehelp at debian.org
Sat Jun 27 21:49:25 UTC 2015


On Sat, 27 Jun 2015 23:13:27 +0300
Lars Wirzenius <liw at liw.fi> wrote:

> On Mon, May 25, 2015 at 07:44:40AM -0400, James Valleroy wrote:
> > linux-image-486 isn't available in sid. It appears to have been
> > replaced with linux-image-586.
> > 
> > The attached patch will change the kernel_arch to 586 for i386
> > builds. After this change, i386 image builds are successful.
> 
> This solves the problem if you're targeting unstable (or anything
> after jessie), but breaks it for wheezy. As I need to support wheezy
> for my own stuff, I offer the attached patch, which also adds a
> --kernel-package option to override frail logic in the future.
> 
> Neil, also available as liw/kernel-package-name in git.

I've thought about using distro-info for this kind of check before. To
avoid the ugliness to which the patch itself refers, something like the
attached could work but it's just an uncommitted draft to show the
flow. Essentially, distro-info replaces codenames (like wheezy) and
the logic which surround them, with dates - vmdebootstrap looks up the
support based on when the relevant support change was released as
stable or became oldstable. I'll also incorporate the kernel-arch
setting from Lars' branch.

This change would introduce a dependency on python-distro-info and would
possibly preclude the use of the version of python-distro-info on
oldstable from building a codename of testing which had not been
announced when oldstable was released (as stable). This may be a
problem, it might not - more likely affecting building the development
Ubuntu suite on current or old LTS, depending on how python-distro-info
gets updated. There's always the option to use a backport of
python-distro-info in such situations - vmdebootstrap previously had to
rely on debootstrap falling over in a heap to tell whether the
self.settings['distribution'] was a valid string.

So the final change will have some notes in the manpage as well as
proper line formatting and testing (possibly tomorrow).

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: distro.diff
Type: text/x-patch
Size: 2966 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20150627/b87bdc90/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20150627/b87bdc90/attachment-0001.sig>


More information about the Vmdebootstrap-devel mailing list