[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Beginner question - stable installer build fails - why?



Indeed that worked very well and resulted in a successful build, thank you.

My next steps:

* Follow https://lists.debian.org/debian-boot/2017/12/msg00375.html to build with a backports kernel.
* Try to do the same with Jessie, which is what my customer actually wants.
* Make whatever changes necessary so the backport kernel is installed in the installed system as well as the installer.

If that works maybe set up a regular build and put that up on http for people to use.  I.e. stable/oldstable netboot with backport kernels.  I think there would be interest in that for people trying to get older versions on latest hardware, which is my use case.

Thanks again,
Alex

On 28/01/18 06:02, Cyril Brulebois wrote:
Hi,

Alex King <alex@king.net.nz> (2018-01-27):
I'm trying to build an installer following build/README, but must have
something basic wrong.  So far I have:

  * apt-get source debian-installer
  * Install the build-dependencies on the host system
  * (did not install a sources list as I'm happy with the system one)
  * make build_netboot
If you're going to build using make under build/ directly, you need to
pass a few variables to get appropriate settings. You're lacking at
least USE_UDEBS_FROM, which defaults to unstable:

     build/config/common:USE_UDEBS_FROM ?= unstable

This should work (provided you start from a clean tree):

     make -C build build_netboot USE_UDEBS_FROM=stretch

Alternatively, use dpkg-buildpackage, so that debian/rules sets the
appropriate variables for you.

$ cat sources.list.udeb
# This file is automatically generated, edit sources.list.udeb.local instead.
deb [trusted=yes]
copy:/home/developer/debian-installer-20170615+deb9u2/build/ localudebs/
deb http://deb.debian.org/debian unstable main/debian-installer
deb http://ftp.debian.org/debian unstable main/debian-installer
→ unstable instead of stretch, as expected.

$ apt-cache search virtio-modules-4.9.0-4-amd64-di

(nothing)
That's expected given your sources.list: no main/debian-installer
component there, so apt doesn't know about those udebs. Try rmadison
(from devscripts) instead.


By the way, there's a bump from 4.9.0-4 to 4.9.0-5 coming up through
stretch-proposed-updates. I've pushed an updated to the stretch branch
accordingly:

   https://anonscm.debian.org/cgit/d-i/debian-installer.git/commit/?id=71c369f53351dab573d153cda41ee26351a85564


Cheers,


Reply to: