Raymond.Schneider | 30 Oct 01:08
Favicon

linux-image issue

Hello… I’m attempting to use Simple-CDD to build an iso for a system and Im running into a problem getting a custom kernel installed. I have it stored in a local directory that I am passing to build-simple-cdd via the –local-packages option and I can build the iso. The problem comes during installation. The iso fails to ‘unpack’ the linux-image package, and then the install is effectively over. It does the whole “will attempt to…. Up to 5 times….’

 

This leads me to my question… what is the preferred methodology for getting a custom kernel package both included in a profile and installed when building a custom iso via simple-cdd?

 

Thanks in advance for any assistance…

 

--ray

Vagrant Cascadian | 31 Oct 17:42
Favicon

Re: linux-image issue

On Thu, Oct 30, 2008 at 01:09:45AM +0100, Raymond.Schneider <at> swisscom.com wrote:
> Hello… I’m attempting to use Simple-CDD to build an iso for a system and Im
> running into a problem getting a custom kernel installed. I have it stored in a
> local directory that I am passing to build-simple-cdd via the –local-packages
> option and I can build the iso. The problem comes during installation. The iso
> fails to ‘unpack’ the linux-image package, and then the install is effectively
> over. It does the whole “will attempt to…. Up to 5 times….’

> This leads me to my question… what is the preferred methodology for getting a
> custom kernel package both included in a profile and installed when building a
> custom iso via simple-cdd?

don't include it in profile/YOURPROFILE.packages, rather include it in
profile/YOURPROFILE.downloads, otherwise it will attempt to install too early.

you'll probably also want to set in profile/YOURPROFILE.conf:

  require_optional_packages="true"

otherwise, the cd build will not fail if your kernel package is missing.

you might need to play with preseeding to get it to automatically select your
kernel package. i'm not positive this is still the right question, but maybe in
profile/YOURPROFILE.preseed:

  d-i base-installer/kernel/which-kernel      select YOUR_CUSTOM_LINUX_IMAGE 

live well,
  vagrant

--

-- 
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Raymond.Schneider | 31 Oct 20:27
Favicon

RE: linux-image issue

Ahh.. Excellent. Thank you very much. I will give this a try.

--ray

-----Original Message-----
From: Vagrant Cascadian [mailto:vagrant <at> freegeek.org]
Sent: Friday, October 31, 2008 12:43 PM
To: debian-custom <at> lists.debian.org
Subject: Re: linux-image issue

On Thu, Oct 30, 2008 at 01:09:45AM +0100, Raymond.Schneider <at> swisscom.com wrote:
> Hello... I'm attempting to use Simple-CDD to build an iso for a system and Im
> running into a problem getting a custom kernel installed. I have it stored in a
> local directory that I am passing to build-simple-cdd via the -local-packages
> option and I can build the iso. The problem comes during installation. The iso
> fails to 'unpack' the linux-image package, and then the install is effectively
> over. It does the whole "will attempt to.... Up to 5 times....'

> This leads me to my question... what is the preferred methodology for getting a
> custom kernel package both included in a profile and installed when building a
> custom iso via simple-cdd?

don't include it in profile/YOURPROFILE.packages, rather include it in
profile/YOURPROFILE.downloads, otherwise it will attempt to install too early.

you'll probably also want to set in profile/YOURPROFILE.conf:

  require_optional_packages="true"

otherwise, the cd build will not fail if your kernel package is missing.

you might need to play with preseeding to get it to automatically select your
kernel package. i'm not positive this is still the right question, but maybe in
profile/YOURPROFILE.preseed:

  d-i base-installer/kernel/which-kernel      select YOUR_CUSTOM_LINUX_IMAGE

live well,
  vagrant

--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Raymond.Schneider | 3 Nov 20:26
Favicon

RE: linux-image issue


Hmmm.. well... to no avail... I have tried all those things suggested below and none have gotten me past this
Debootstrap warning I get:

        Warning: Failure while unpacking required packages. This will be        attempted up to five times.

When looking at Alt-F4... I see the message

        Errors were encountered while processing:
        var/cache/apt/archives/linux-image******.deb

(The **** obviously are not the actual name of the deb but used for brevity..)

Try as I might, I have yet to get around this.

I did not create this custom kernel image, but at this point I am starting to suspect that it may actually be
the culprit. It does however, install successfully if you just do it using apt-get or dpkg on a fresh
install of the system.

Any other ideas? Is there some way to get Simple-CDD to be extremely verbose?

Thanks for any additional input.. Its appreciated greatly..

-Ray

-----Original Message-----
From: Vagrant Cascadian [mailto:vagrant <at> freegeek.org]
Sent: Friday, October 31, 2008 12:43 PM
To: debian-custom <at> lists.debian.org
Subject: Re: linux-image issue

On Thu, Oct 30, 2008 at 01:09:45AM +0100, Raymond.Schneider <at> swisscom.com wrote:
> Hello... I'm attempting to use Simple-CDD to build an iso for a system and Im
> running into a problem getting a custom kernel installed. I have it stored in a
> local directory that I am passing to build-simple-cdd via the -local-packages
> option and I can build the iso. The problem comes during installation. The iso
> fails to 'unpack' the linux-image package, and then the install is effectively
> over. It does the whole "will attempt to.... Up to 5 times....'

> This leads me to my question... what is the preferred methodology for getting a
> custom kernel package both included in a profile and installed when building a
> custom iso via simple-cdd?

don't include it in profile/YOURPROFILE.packages, rather include it in
profile/YOURPROFILE.downloads, otherwise it will attempt to install too early.

you'll probably also want to set in profile/YOURPROFILE.conf:

  require_optional_packages="true"

otherwise, the cd build will not fail if your kernel package is missing.

you might need to play with preseeding to get it to automatically select your
kernel package. i'm not positive this is still the right question, but maybe in
profile/YOURPROFILE.preseed:

  d-i base-installer/kernel/which-kernel      select YOUR_CUSTOM_LINUX_IMAGE

live well,
  vagrant

--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Raymond.Schneider | 3 Nov 21:44
Favicon

RE: linux-image issue

As another note... as I humbly seek advice...

I have run simple-cdd as follows:

# build-simple-cdd --profiles-udeb-dist sid --dist etch --local-packages /full/path/to/pkgsdir

This as I understand it should have build an iso based on the default profile... That said, I added the
linux-image pkg I am trying to get installed... just to see if I could get it on the iso only.. and not get
installed, I only added it to the default.downloads file. I added no d-i command to the preseed or anything
other packages to the default.packages file..

As usual I was able to build yet another iso that fails on 'unpacking required packages.' The thing that's
bugging me is I had thought that adding it to the profile.downloads would get the pkg from my
--local-packages dir and put it on the iso, not try to install it..

Any ideas???

Tia,

-Ray

-----Original Message-----
From: Schneider Raymond, SH-NET (EXT)
Sent: Monday, November 03, 2008 2:27 PM
To: debian-custom <at> lists.debian.org
Subject: RE: linux-image issue

Hmmm.. well... to no avail... I have tried all those things suggested below and none have gotten me past this
Debootstrap warning I get:

        Warning: Failure while unpacking required packages. This will be        attempted up to five times.

When looking at Alt-F4... I see the message

        Errors were encountered while processing:
        var/cache/apt/archives/linux-image******.deb

(The **** obviously are not the actual name of the deb but used for brevity..)

Try as I might, I have yet to get around this.

I did not create this custom kernel image, but at this point I am starting to suspect that it may actually be
the culprit. It does however, install successfully if you just do it using apt-get or dpkg on a fresh
install of the system.

Any other ideas? Is there some way to get Simple-CDD to be extremely verbose?

Thanks for any additional input.. Its appreciated greatly..

-Ray

-----Original Message-----
From: Vagrant Cascadian [mailto:vagrant <at> freegeek.org]
Sent: Friday, October 31, 2008 12:43 PM
To: debian-custom <at> lists.debian.org
Subject: Re: linux-image issue

On Thu, Oct 30, 2008 at 01:09:45AM +0100, Raymond.Schneider <at> swisscom.com wrote:
> Hello... I'm attempting to use Simple-CDD to build an iso for a system and Im
> running into a problem getting a custom kernel installed. I have it stored in a
> local directory that I am passing to build-simple-cdd via the -local-packages
> option and I can build the iso. The problem comes during installation. The iso
> fails to 'unpack' the linux-image package, and then the install is effectively
> over. It does the whole "will attempt to.... Up to 5 times....'

> This leads me to my question... what is the preferred methodology for getting a
> custom kernel package both included in a profile and installed when building a
> custom iso via simple-cdd?

don't include it in profile/YOURPROFILE.packages, rather include it in
profile/YOURPROFILE.downloads, otherwise it will attempt to install too early.

you'll probably also want to set in profile/YOURPROFILE.conf:

  require_optional_packages="true"

otherwise, the cd build will not fail if your kernel package is missing.

you might need to play with preseeding to get it to automatically select your
kernel package. i'm not positive this is still the right question, but maybe in
profile/YOURPROFILE.preseed:

  d-i base-installer/kernel/which-kernel      select YOUR_CUSTOM_LINUX_IMAGE

live well,
  vagrant

--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Vagrant Cascadian | 4 Nov 21:44
Favicon

Re: linux-image issue

On Mon, Nov 03, 2008 at 09:44:48PM +0100, Raymond.Schneider <at> swisscom.com wrote:
> I have run simple-cdd as follows:
> 
> # build-simple-cdd --profiles-udeb-dist sid --dist etch --local-packages /full/path/to/pkgsdir

> This as I understand it should have build an iso based on the default
> profile... That said, I added the linux-image pkg I am trying to get
> installed... just to see if I could get it on the iso only.. and not get
> installed, I only added it to the default.downloads file. I added no d-i
> command to the preseed or anything other packages to the default.packages
> file..

thanks for this information.

do you get the same error when running without including --local-packages ?

have you re-built with a fresh mirror? i.e. wiped out
$your_simple_cdd_workdir/tmp and started over?

> As usual I was able to build yet another iso that fails on 'unpacking
> required packages.' The thing that's bugging me is I had thought that adding
> it to the profile.downloads would get the pkg from my --local-packages dir
> and put it on the iso, not try to install it..

what's the priority set on the custom linux-image package?

lesspipe linux-image*.deb | egrep -i priority

live well,
  vagrant

Raymond.Schneider | 5 Nov 14:10
Favicon

RE: linux-image issue

If Im not mistaken the priority in the control file is optional. As to whether or not I have re-built with a
fresh mirror, I have done both as I have experimented with this situation. I tend to favor starting over by
wiping the tmp/ that gets created by issuing a rm -rf tmp. I have found that doing so tends to lessen errors
and unexpected outcomes. (I can't give a specific example of this, other than if I changed a package, but
left it named the same, it would not build the new version of the package into the system. I believe I
understand why that happens, but nevertheless...)

Its an interesting suggestion to run without --local-packages. How would simple-cdd know where to get my
linux-image deb (since its in the dir defined by local-packages argument) if I do not provide it? For the
sake of completeness, I will go ahead and run again without providing local-packages and leaving my
linux-image deb in the .downloads file and see what happens. I will also be doing this having just removed
the tmp/ created by simple-cdd.

I'll report back in a little while with another response.

Thanks again for responding to my questions. I appreciate your efforts to help and frankly what simple-cdd
represents as a piece of software.

--ray

-----Original Message-----
From: Vagrant Cascadian [mailto:vagrant <at> freegeek.org]
Sent: Tuesday, November 04, 2008 3:45 PM
To: debian-custom <at> lists.debian.org
Subject: Re: linux-image issue

On Mon, Nov 03, 2008 at 09:44:48PM +0100, Raymond.Schneider <at> swisscom.com wrote:
> I have run simple-cdd as follows:
>
> # build-simple-cdd --profiles-udeb-dist sid --dist etch --local-packages /full/path/to/pkgsdir

> This as I understand it should have build an iso based on the default
> profile... That said, I added the linux-image pkg I am trying to get
> installed... just to see if I could get it on the iso only.. and not get
> installed, I only added it to the default.downloads file. I added no d-i
> command to the preseed or anything other packages to the default.packages
> file..

thanks for this information.

do you get the same error when running without including --local-packages ?

have you re-built with a fresh mirror? i.e. wiped out
$your_simple_cdd_workdir/tmp and started over?

> As usual I was able to build yet another iso that fails on 'unpacking
> required packages.' The thing that's bugging me is I had thought that adding
> it to the profile.downloads would get the pkg from my --local-packages dir
> and put it on the iso, not try to install it..

what's the priority set on the custom linux-image package?

lesspipe linux-image*.deb | egrep -i priority

live well,
  vagrant

--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Raymond.Schneider | 5 Nov 15:33
Favicon

RE: linux-image issue

I just removed the tmp/ and the images/ from a previous run of simple-cdd and made sure that my kernel was
noted in the .downloads file. I did not pass --local-packages <pkgsdir> on the commandline.. All I ran was

# build-simple-cdd --profiles-udeb-dists sid --dist etch

This actually produced an iso. I don't think it should have since there is no way it could have found my
linux-image deb (since its in that local dir). And upon inspection of the mirror it created, it did not. So I
am not even going to run this iso as it does not even contain the kernel option.

I'll try something else and report back...

-----Original Message-----
From: Schneider Raymond, SH-NET (EXT)
Sent: Wednesday, November 05, 2008 8:11 AM
To: debian-custom <at> lists.debian.org
Subject: RE: linux-image issue

If Im not mistaken the priority in the control file is optional. As to whether or not I have re-built with a
fresh mirror, I have done both as I have experimented with this situation. I tend to favor starting over by
wiping the tmp/ that gets created by issuing a rm -rf tmp. I have found that doing so tends to lessen errors
and unexpected outcomes. (I can't give a specific example of this, other than if I changed a package, but
left it named the same, it would not build the new version of the package into the system. I believe I
understand why that happens, but nevertheless...)

Its an interesting suggestion to run without --local-packages. How would simple-cdd know where to get my
linux-image deb (since its in the dir defined by local-packages argument) if I do not provide it? For the
sake of completeness, I will go ahead and run again without providing local-packages and leaving my
linux-image deb in the .downloads file and see what happens. I will also be doing this having just removed
the tmp/ created by simple-cdd.

I'll report back in a little while with another response.

Thanks again for responding to my questions. I appreciate your efforts to help and frankly what simple-cdd
represents as a piece of software.

--ray

-----Original Message-----
From: Vagrant Cascadian [mailto:vagrant <at> freegeek.org]
Sent: Tuesday, November 04, 2008 3:45 PM
To: debian-custom <at> lists.debian.org
Subject: Re: linux-image issue

On Mon, Nov 03, 2008 at 09:44:48PM +0100, Raymond.Schneider <at> swisscom.com wrote:
> I have run simple-cdd as follows:
>
> # build-simple-cdd --profiles-udeb-dist sid --dist etch --local-packages /full/path/to/pkgsdir

> This as I understand it should have build an iso based on the default
> profile... That said, I added the linux-image pkg I am trying to get
> installed... just to see if I could get it on the iso only.. and not get
> installed, I only added it to the default.downloads file. I added no d-i
> command to the preseed or anything other packages to the default.packages
> file..

thanks for this information.

do you get the same error when running without including --local-packages ?

have you re-built with a fresh mirror? i.e. wiped out
$your_simple_cdd_workdir/tmp and started over?

> As usual I was able to build yet another iso that fails on 'unpacking
> required packages.' The thing that's bugging me is I had thought that adding
> it to the profile.downloads would get the pkg from my --local-packages dir
> and put it on the iso, not try to install it..

what's the priority set on the custom linux-image package?

lesspipe linux-image*.deb | egrep -i priority

live well,
  vagrant

--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Vagrant Cascadian | 5 Nov 16:58
Favicon

Re: linux-image issue

On Wed, Nov 05, 2008 at 03:33:17PM +0100, Raymond.Schneider <at> swisscom.com wrote:

> I just removed the tmp/ and the images/ from a previous run of simple-cdd and
> made sure that my kernel was noted in the .downloads file. I did not pass
> --local-packages <pkgsdir> on the commandline.. All I ran was

> # build-simple-cdd --profiles-udeb-dists sid --dist etch

> This actually produced an iso. I don't think it should have since there is no
> way it could have found my linux-image deb (since its in that local dir). And
> upon inspection of the mirror it created, it did not. 

this is exactly what i expected...

> So I am not even going to run this iso as it does not even contain the kernel
> option.

well, i would still recommend trying to install from this, to rule out that the
error was caused by your custom linux-image package rather than some other
problem.

live well,
  vagrant

Raymond.Schneider | 5 Nov 17:13
Favicon

RE: linux-image issue

I'm afraid I do not see the point in attempting to install the iso that was created when my linux-image does
not exist in it? I wouldn't think it would rule anything out with regard to linux-image since it will never
get installed because it doesn't exist on the ISO.

I'll go ahead and do it for kicks.

Also, I have cleaned out tmp/ again and run simple-cdd with --local-packages to make sure that the iso gets
into the mirrow, and then I built the iso again without removing the tmp/ (so that the linux-image would
still be there) without the --local-packages args.

I send an email here after lunch sometime with whatever the results may be.

Again, appreciate all the attention to this.

Thx,

--ray

-----Original Message-----
From: Vagrant Cascadian [mailto:vagrant <at> freegeek.org]
Sent: Wednesday, November 05, 2008 10:59 AM
To: debian-custom <at> lists.debian.org
Subject: Re: linux-image issue

On Wed, Nov 05, 2008 at 03:33:17PM +0100, Raymond.Schneider <at> swisscom.com wrote:

> I just removed the tmp/ and the images/ from a previous run of simple-cdd and
> made sure that my kernel was noted in the .downloads file. I did not pass
> --local-packages <pkgsdir> on the commandline.. All I ran was

> # build-simple-cdd --profiles-udeb-dists sid --dist etch

> This actually produced an iso. I don't think it should have since there is no
> way it could have found my linux-image deb (since its in that local dir). And
> upon inspection of the mirror it created, it did not.

this is exactly what i expected...

> So I am not even going to run this iso as it does not even contain the kernel
> option.

well, i would still recommend trying to install from this, to rule out that the
error was caused by your custom linux-image package rather than some other
problem.

live well,
  vagrant

--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Raymond.Schneider | 5 Nov 19:28
Favicon

RE: linux-image issue

Same result as before in both instances that I said I would try. It
Attempts to install the linux-image pkg but fails during the 'unpacking required packages' with the
red-screen of death. :/

So what does this say to you? Should I be thinking the linux-image pkg is somehow bad? If that is the case then
why can I install this same pkg via dpkg or via apt-get after an install of a std debian iso? Why would it only
fail to install if its included into a custom iso?

Thanks again

--ray

-----Original Message-----
From: Schneider Raymond, SH-NET (EXT)
Sent: Wednesday, November 05, 2008 11:14 AM
To: debian-custom <at> lists.debian.org
Subject: RE: linux-image issue

I'm afraid I do not see the point in attempting to install the iso that was created when my linux-image does
not exist in it? I wouldn't think it would rule anything out with regard to linux-image since it will never
get installed because it doesn't exist on the ISO.

I'll go ahead and do it for kicks.

Also, I have cleaned out tmp/ again and run simple-cdd with --local-packages to make sure that the iso gets
into the mirrow, and then I built the iso again without removing the tmp/ (so that the linux-image would
still be there) without the --local-packages args.

I send an email here after lunch sometime with whatever the results may be.

Again, appreciate all the attention to this.

Thx,

--ray

-----Original Message-----
From: Vagrant Cascadian [mailto:vagrant <at> freegeek.org]
Sent: Wednesday, November 05, 2008 10:59 AM
To: debian-custom <at> lists.debian.org
Subject: Re: linux-image issue

On Wed, Nov 05, 2008 at 03:33:17PM +0100, Raymond.Schneider <at> swisscom.com wrote:

> I just removed the tmp/ and the images/ from a previous run of simple-cdd and
> made sure that my kernel was noted in the .downloads file. I did not pass
> --local-packages <pkgsdir> on the commandline.. All I ran was

> # build-simple-cdd --profiles-udeb-dists sid --dist etch

> This actually produced an iso. I don't think it should have since there is no
> way it could have found my linux-image deb (since its in that local dir). And
> upon inspection of the mirror it created, it did not.

this is exactly what i expected...

> So I am not even going to run this iso as it does not even contain the kernel
> option.

well, i would still recommend trying to install from this, to rule out that the
error was caused by your custom linux-image package rather than some other
problem.

live well,
  vagrant

--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org

Vagrant Cascadian | 5 Nov 21:46
Favicon

Re: linux-image issue

On Wed, Nov 05, 2008 at 07:28:49PM +0100, Raymond.Schneider <at> swisscom.com wrote:

> So what does this say to you? Should I be thinking the linux-image pkg is
> somehow bad? 

possibly, which is why i suggest trying to install without it, using a standard
linux-image package. then you can determine if it is really your custom
linux-image that is broken, or something else in the build process. am i
repeating myself here? :)

> If that is the case then why can I install this same pkg via
> dpkg or via apt-get after an install of a std debian iso? Why would it only
> fail to install if its included into a custom iso?

because there are probably some differences in how it installs from a
debian-installer environment vs. from whatever environment you're using to
install it manually.

from the error message you were getting, it sounded to me like debootstrap was
trying to install it, rather than the usual debian-intsaller hooks for
installing a kernel. so something is very strange with your linux-image
package.

live well,
  vagrant

Jordi Soucheiron | 9 Dec 11:05

Re: linux-image issue

Hi everybody,
I already have a custom debian cd. Is there any simple way to install the etchandahalf linux image? I don't really need it during the instalation, but I need it to support a huawei e220 3g modem once installed.

2008/11/5 Vagrant Cascadian <vagrant <at> freegeek.org>
On Wed, Nov 05, 2008 at 07:28:49PM +0100, Raymond.Schneider <at> swisscom.com wrote:

> So what does this say to you? Should I be thinking the linux-image pkg is
> somehow bad?

possibly, which is why i suggest trying to install without it, using a standard
linux-image package. then you can determine if it is really your custom
linux-image that is broken, or something else in the build process. am i
repeating myself here? :)

> If that is the case then why can I install this same pkg via
> dpkg or via apt-get after an install of a std debian iso? Why would it only
> fail to install if its included into a custom iso?

because there are probably some differences in how it installs from a
debian-installer environment vs. from whatever environment you're using to
install it manually.

from the error message you were getting, it sounded to me like debootstrap was
trying to install it, rather than the usual debian-intsaller hooks for
installing a kernel. so something is very strange with your linux-image
package.

live well,
 vagrant


--
To UNSUBSCRIBE, email to debian-custom-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org




--
Jordi Soucheiron
Software Engineer

DEXMA
Riu de l'Or 35, ES-08034, Barcelona
t:/f: +34 93 280 19 18
www.dexmatech.com
jsoucheiron <at> dexmatech.com


Gmane