Installing with a different kernel

Solution 1:

"Easy" is a relative term. It would not be too difficult, the basics are on this page

https://help.ubuntu.com/community/LiveCDCustomization

In your case, the changes are fairly minimal.

Extract the iso and filesystem.squashfs (as outlined in the above link)

Copy your new kernel to casper/vmlinux (over write the old kernel).

# Assuming you are following the above link
cp your_kernel ~/extract-cd/casper/vmlinuz

Copy your kernel modules to the extracted squashfs , to lib/modules (you can delete the old modules).

# Assuming you are following the above link
cp -R /lib/modules/your_custom_kernel ~/edit/lib/modules

Extract the old initramfs, here I will use ~/initrd as a build directory

mkdir ~/initrd
cd ~/initrd
lzma -dc -S .lz casper/initrd.lz | cpio -imvd --no-absolute-filenames

Copy your lib/modules to the initrd lib/modules (you can delete the old modules)

cp -R /lib/modules/your_custom_kernel ~/initrd/lib/modules

Package the initrd

find . | cpio --quiet --dereference -o -H newc | lzma -7 > ../cusotm.initrd.lz

Over-write the old initrd

cp ~/cusotm.initrd.lz ~/extract-cd/casper/initrd.lz

Now re-package the iso

https://help.ubuntu.com/community/LiveCDCustomization#Producing_the_CD_image