Build Ubuntu 13.10 x64 : boot error /casper/vmlinuz.efi file not found

Bug #1280419 reported by Laurent CHARLOIS
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Builder
New
Undecided
Unassigned

Bug Description

As same as this bug https://bugs.launchpad.net/ubuntu-builder/+bug/1169492 i get an error after building an ISO.

The difference with the previous bug is that i try to build a 13.10 64bits image under a 13.04 64 bits installation.

After trying to understand what is the problem i've found that these two commands fail :

cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz.efi

The cause is that there more than one file that match the $FSPATH/boot/vmlinuz* expression and so the error message is that $ISOPATH/casper/vmlinuz is not a folder.

So i rewrote these two lines like that.

VMLINUZ_FILE=$(ls $FSPATH/boot/vmlinuz* | grep -v .efi*)
cp -f $VMLINUZ_FILE $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz*efi* $ISOPATH/casper/vmlinuz.efi

I will try this workaround and tell you what is the result.

=== Update

The error is not here anymore, but there is an error related to initrd.lz

This is caused by the presence of different kernel version.

May be old kernel version can be removed before build the image by using this command :
sudo apt-get purge $(dpkg -l | awk '{print $2}' | grep -E "linux-(image|headers)-$(uname -r | cut -d- -f1).*" | grep -v $(uname -r | sed -r -e 's:-[a-z]+.*::'))

This command comes from : http://doc.ubuntu-fr.org/kernel#suppression_des_anciens_noyaux

===== UPDATE 2 ====

It doesn't work.... :'(

description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.