Some kernel upgrades not properly detected

Bug #751782 reported by David Morlitz on 2011-04-05
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Customization Kit
Undecided
Unassigned
Ubuntu
Undecided
Unassigned

Bug Description

During the master process when searching for kernel upgrades some kernels are not properly detected if they have more than 3 hyphenated parts in their name. For example, I was trying to customize Ubuntu 10.04.2 to use the PAE enabled kernel to access the 4GB of RAM in my machine. My vmlinuz was called vmlinuz-2.6.32-30-generic-pae. The script properly detected that 2.6.32-30 was an upgrade from 2.6.32.28. However, when UCK went looking for the matching initrd.img, it only searched for vmlinuz-2.6.32-30-generic (which I didn't have) and ignored the kernel upgrade. If I remove the last hyphen, the script appears to work fine (i.e. vmlinuz-2.6.32-30-genericpae) In the customize_iso script, function get_latest_kernel the logic reads "$REMASTER_DIR/boot/$1-$2.$3.$4-$5-$6" I believe that $6 needs to be replaced with something like "everything after $5" to handle these potential differences in kernel naming and descriptive tags.

David Morlitz (david-morlitz) wrote :

Sorry - I forgot to mention that I was using Ubuntu standard naming conventions for the kernel. I obtained vmlinuz-2.6.32-30-generic-pae by installing the package linux-image-generic-pae I did not customize the file names, so it is likely that other kernels in the Ubuntu repository will exhibit this situation.

Märt Põder (boamaod) wrote :

Since Ubuntu 12.04 32-bit version sports PAE kernel by default, this bug affects all Ubuntu 12.04 32-bit kernel updates which will not be properly detected in customization process as described above.

@Mart: why do you say "find of fixes"?

Pascal de Bruijn (pmjdebruijn) wrote :

A lot changed in svn, I pushed an updated package to my PPA:

https://launchpad.net/~pmjdebruijn/+archive/uck-testing

Märt Põder (boamaod) wrote :

Since there appear some /boot/vmlinuz*.efi.signed files in Ubuntu 12.10, kernel update fails again. Kernel is updated, but "uname -a" still reports old kernel on live system. This patch excludes those files and fixes the problem for me.

The attachment "Patch for 64-bit Ubuntu 12.10" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers