0

I have a liveCD ubuntu Linux iso image. I need to update the kernel of this image. I've tried to get the iso on a host Ubuntu system and move the compiled kernel and the modules from there to the liveCD but after doing that, the system stuck at:

loading kernel /casper/vmlinuz.. done loading file /casper/inited.img.. done

I think that the initrd can't find the root filesystem which is at "/casper/filesyste.squashfs".

Does anyone know a valid way to do this task? my next attempt would be to mount the root filesystem of liveCD on the host system and compile the new kernel from there.

6
  • I'd honestly just go through the process that Ubuntu uses to create their liveCDs! That seems to most clean. Mar 15, 2022 at 9:39
  • In case you only need a portable system, you could also install Ubuntu onto a USB thumb drive. You can install any supported kernel in a convenient manner. Not an option if you absolutely need a read-only boot medium of course.
    – Hermann
    Mar 15, 2022 at 9:44
  • @MarcusMüller What's the process? can u provide link, please. Thanks
    – Taha Adel
    Mar 15, 2022 at 9:54
  • @Hermann The thing is that I already have a customized image and want to update its kernel because some devices such as network interface card on modern hardware doesn't work.
    – Taha Adel
    Mar 15, 2022 at 9:55

1 Answer 1

1

Issue resolved by:

Installing the new kernel in the chroot environment of the liveCD root file system itself and then moved the new kernel (vmlinuz) and the initramfs image (initrd) to the /casper directory in the USB top filesystem.

1
  • 1
    This can't possibly be the complete solution. Starting with at least 18.04 Live CD ISO's require GPG signing, without which (as far as can tell) they won't boot.
    – pgoetz
    Sep 30, 2022 at 8:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .