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

Bug #1169492 reported by Valombre
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Builder
Fix Released
High
Francesco Muriana

Bug Description

Hi,
first of all thanks for your project ;)

using ubuntu-builder 2.3.5 on a 12.04 x64 ubuntu station, building a custom 12.04 x64 is ok but the iso boot with an error "/casper/vmlinuz.efi file not found".

I tried several rebuild changing kernel versions also putting a symlink in casper before build (doesn't work with major error)
I found some interesting info concerning vmlinuz.efi on x64 => https://help.ubuntu.com/community/Grub2/ISOBoot explaining that :
"Updated releases of Ubuntu 12.04 and later may designate the 64-bit kernel as vmlinuz.efi. This file is still located in the /casper folder. When creating the menuentry, use vmlinuz.efi rather than vmliinuz in the linux line for the 64-bit version."

Hope you could patch this easily.
Ps: screen of boot error on qemu.

Regards

Revision history for this message
Valombre (valombre-d) wrote :
Revision history for this message
Valombre (valombre-d) wrote :

For debugging/test :
i modified your script /usr/share/ubuntu-builder/extras/Build
line 76 adding => rm -f $ISOPATH/casper/vmlinuz.efi
and line 238 modifying => cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz.efi

Of course i guess you need to script this more cleanly to check versions because here it works only for x64 ubuntu 12.04 (don't know for 12.10/13.04 etc..)

And building ISO => boot ok no more error message.

I have others problems but it comes from my previous tests, i will redo the complete update/build to check, i'm trying to build an updated MATE 1.6 environment.

Revision history for this message
Francesco Muriana (f-muriana) wrote :

Hello and thanks for your bug report. I'll do some tests and then I can upload a patch.

Changed in ubuntu-builder:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Francesco Muriana (f-muriana)
milestone: none → 2.4.0
Revision history for this message
Valombre (valombre-d) wrote :

Hi,
some more tests done :
- fresh rebuild of the 12.04.2 LTS version with only update of packages (no packages/repo add)
- error vmlinuz.efi at iso boot because after update 2 kernel were presents in ubuntu-builder/FileSystem/boot/ (saw the trick in other issues of ubuntu-builder)
vmlinuz-3.5.0-27-generic.efi.signed and vmlinuz-3.5.0-27-generic
- i simply remove (rm) the vmlinuz-3.5.0-27-generic and rebuild with modified Build script => boot ok

Revision history for this message
Francesco Muriana (f-muriana) wrote :

Try this script, replace the original in /usr/share/ubuntu-builder/extras

Revision history for this message
Valombre (valombre-d) wrote :

hi some test with your modified script.
Didn't boot because the name of the vminuz is vmlinuz-3.5.0-27-generic.efi.signed
and your script contain => cp -f $FSPATH/boot/vmlinuz*.efi $ISOPATH/casper/vmlinuz.efi

I modified with => cp -f $FSPATH/boot/vmlinuz*.efi* $ISOPATH/casper/vmlinuz.efi
And then boot is ok.

Revision history for this message
RonFrazer (ron-alliswell) wrote :

I installed 13.04 (x64) onto a USB drive using Universal USB Installer. After rebooting to the new USB installation I received the error "/casper/vmlinuz.efi: file not found". I repeated the installation and got the same result.

Computer is an HP Pavilion g7 laptop with AMD 64bit.

Revision history for this message
Francesco Muriana (f-muriana) wrote :

Thanks a lot for your help Valombre.

@RonFrazer
the fix has been committed. Wait a few days and will be released the new version that contains this fix.

Changed in ubuntu-builder:
status: Confirmed → Fix Committed
Revision history for this message
gogo (trebelnik-stefina) wrote :

I have still this bug!
For me only work when I add in /usr/share/ubuntu-builder/extras/Build script,
this line:
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz.efi

Revision history for this message
Francesco Muriana (f-muriana) wrote :

So this line

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

does not work for you?

Changed in ubuntu-builder:
status: Fix Committed → Fix Released
Revision history for this message
valmar (valmar-lp) wrote :

Dear Francesco,

   as it happens with the user gogo, the fix doesn't work for me except when I add the line:

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

I am using version 2.4.0 to create a customized version of 13.04. The fix does not work for me because in $FSPATH/boot/ I have the following files:

abi-3.8.0-21-generic
memtest86+.bin
config-3.8.0-21-generic
memtest86+_multiboot.bin
grub
System.map-3.8.0-21-generic
initrd.img-3.8.0-21-generic
vmlinuz-3.8.0-21-generic

As you can see, no file has the efi extension, so in the end I have no vmlinuz.efi, which the live cd seems to require. The fix suggested by gogo creates the file, allowing me to boot..

 Valerio

Revision history for this message
Francesco Muriana (f-muriana) wrote :

Ok, thanks, I did the change.

I will upload the updated script in a few hours

Revision history for this message
Rohan "HEXcube" Villoth (hexcube) wrote :

This bug isn't fixed yet, as of Ubuntu Builder 2.52. The commited fix won't work perfectly. The iso produced with the fixed Ubuntu Builder may live boot, but doesn't boot once installed.
This bug arises because vmlinuz and intrd.img are not present in /boot directory of extracted Filesystem. To, fix this do not copy vmlinuz and intrd.img to $ISOPATH/casper directory. Instead, inspect the intrd.img and vmlinuz symlinks at $FSPATH/ i.e, Filesystem and find the names of files they point to. In my case, with Ubuntu 12.04.4 with linux 3.11 kernel, they were boot/vmlinuz-3.11.0-15-generic and /boot/initrd.img-3.11.0-15-generic. So, find the original vmlinuz and intrd files from /casper of the original iso, extract them to $FSPATH/boot and rename them to what the symlinks say.
In my case, i renamed the intrd.lz and vmlinuz.efi files to initrd.img-3.11.0-15-generic and vmlinuz-3.11.0-15-generic. Now,if u build the iso, Ubuntu Builder will correctly update files to $ISOPATH/casper and your iso will work properly not just during live boot, but also for installation.

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.