How to change kernel?

Hi,

I follow procedure posted by hiroysato. My build machine is running Debian Wheezy 7.7.

make linux-image works fine.

make iso failed with the following:

cd livecd && fakeroot fakechroot ./mk.livecd
I: cleaning earlier build
I: configuring build
I: Using Debian mirror http://packages.multi.eu/debian/jessie-transit
I: Using Debian bootstrap mirror http://packages.multi.eu/debian/jessie-transit
I: Using VyOS package mirror http://packages.multi.eu/vyos
[2015-01-01 01:45:55] lb config
P: Creating config tree for a debian/wheezy/amd64 system
I: building bootstrap
[2015-01-01 01:45:55] lb bootstrap
P: Setting up cleanup function
[2015-01-01 01:45:55] lb bootstrap_cache restore
P: Restoring bootstrap stage from cache…
[2015-01-01 01:45:55] lb bootstrap_cdebootstrap
[2015-01-01 01:45:55] lb bootstrap_debootstrap
P: Begin bootstrapping system…
[2015-01-01 01:45:55] lb testroot
P: If the following stage fails, the most likely cause of the problem is with your mirror configuration or a caching proxy.
P: Running debootstrap (download-only)…
I: Retrieving Release
E: Failed getting release file http://packages.multi.eu/debian/jessie-transit/dists/wheezy/Release
P: Begin unmounting filesystems…
P: Saving caches…
chroot: failed to run command `/usr/bin/env’: No such file or directory
E: bootstrap build failed

Could someone please help?

Thanks.

Hello arctic.

Can you share your steps?
Could you post the result of this command in build-iso directory?

git log | head 

I’ll try your step on my environment.


Hiroyuki Sato

Hi Hiroyuki,

I installed Debian Wheezy, apt-get update and then dist-upgrade.

$ git log | head
commit 82ba6e05312c676fc83d3bc13b1d913b9bea4afd
Author: Kim Hagen [email protected]
Date: Mon Mar 17 19:21:23 2014 +0100

v3.10.33

commit 93a4adf6742ee47548053eb6a59eb775ec5c2404
Author: Kim Hagen [email protected]
Date: Mon Mar 17 18:30:55 2014 +0100

I have two issues:

  1. The first one I got around by modifying livecd/mk.livecd.conf:
    declare -x VYATTA_BUILD_BRANCH=“jessie-transit”
    to
    declare -x VYATTA_BUILD_BRANCH=“wheezy-transit”

  2. I got the unknown key (key id 9B217AB43D4A8943) problem. The key needs to be added in the chroot environment. I do not have experience with the Debian build environment and this issue is still outstanding for me.

This is the make log:

$ make iso
cd livecd && fakeroot fakechroot ./mk.livecd
I: cleaning earlier build
I: configuring build
I: Using Debian mirror http://packages.multi.eu/debian/wheezy-transit
I: Using Debian bootstrap mirror http://packages.multi.eu/debian/wheezy-transit
I: Using VyOS package mirror http://packages.multi.eu/vyos
[2015-01-05 23:44:59] lb config
P: Creating config tree for a debian/wheezy/amd64 system
I: building bootstrap
[2015-01-05 23:44:59] lb bootstrap
P: Setting up cleanup function
[2015-01-05 23:44:59] lb bootstrap_cache restore
P: Restoring bootstrap stage from cache…
[2015-01-05 23:44:59] lb bootstrap_cdebootstrap
[2015-01-05 23:44:59] lb bootstrap_debootstrap
P: Begin bootstrapping system…
[2015-01-05 23:44:59] lb testroot
P: If the following stage fails, the most likely cause of the problem is with your mirror configuration or a caching proxy.
P: Running debootstrap (download-only)…
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
E: Release signed by unknown key (key id 9B217AB43D4A8943)
P: Begin unmounting filesystems…
P: Saving caches…
chroot: failed to run command `/usr/bin/env’: No such file or directory
E: bootstrap build failed

Thanks,

Following this page I was able to build ‘lithium’ for amd64-vyos.

I compiled linux-image and then make iso. I had to be root to get around the chroot operation not permitted problem for make iso.

:slight_smile: