Kernel on liveCD and installed system are different
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_
- sed -e "s@$REMASTER_
- tr -- '-.' '\t' |
- sort --key=2 --key=3 --key=4 --key=5 --numeric-sort |
- tail -n1 )
- [ "$1" = "vmlinuz" ] && echo "$REMASTER_
+ echo $(ls "$REMASTER_
So i applied it and nothing worked. I replaced the last string with
+ echo $(ls "$REMASTER_
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.
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.