Kernel on liveCD and installed system are different

Bug #1040613 reported by Alexey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Customization Kit
New
Undecided
Unassigned

Bug Description

I was trying to modify xubuntu 12.04 livecd by upgrading all the packages and adding some of my own, including modified kernel. The chrooted system before the ISO building included (in /boot folder) 3.2.0-generic-23, 3.2.0-generic-29 and my custom 3.5.0-custom kernels (vmlinuz files). UCK builded the ISO and after installation i found out (uname -r) that system is running on generic-29 kernel. The /boot directory only had 29-generic and 23-generic kernels.
I found that it might be caused by sorting system of customization_iso script, and i found the fix:

- set -- $(ls "$REMASTER_DIR"/boot/vmlinuz* 2>/dev/null |
- sed -e "s@$REMASTER_DIR/boot/@@" |
- tr -- '-.' '\t' |
- sort --key=2 --key=3 --key=4 --key=5 --numeric-sort |
- tail -n1 )
- [ "$1" = "vmlinuz" ] && echo "$REMASTER_DIR/boot/$1-$2.$3.$4-$5-$6"
+ echo $(ls "$REMASTER_DIR"/boot/vmlinuz* -1v 2>/dev/null | tail -n1)

So i applied it and nothing worked. I replaced the last string with

+ echo $(ls "$REMASTER_DIR"/boot/vmlinuz-3.5.0* -1v 2>/dev/null | tail -n1)

so the function will find only one kernel. But that didn't work at all points. When i boot in LiveCD mode, uname -r gives me 29-generic, but /boot folder does contain custom kernel. But when i install system, it does only contain 23-generic and 29-generic kernels.
So the bug is that UCK give different kernels to live and installed system.

Revision history for this message
Alexey (lexx92) wrote :

Just some more builds and i found that patch works. The problem was that i was modifying customization_iso in the middle of the build (i'm building on virtual machine, so while experimenting i was restoring the pre-build state), when i had to modify customization_iso in the ~/tmp folder.
But the bug of not finding all the kernels still exist.

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.