Score:0

How to make .iso file from ubuntu source I downloaded from kernel.ubuntu.com?

za flag

from this page, I learned that I can get the whole ubuntu 20.04 source by

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git

But I can't find information about how to make .iso file from the source.
What I want to do is to add some prints to the source code to debug ubuntu install failure to my qemu virtual machine, or better yet, to run the installation using debugger.

SaleemKhair avatar
cn flag
What you are cloning here is the kernel, you will probably also need the rootfs ... after that you'll need to build the kernel with whatever modification you made to it ... this will generate the initramfs or ( initial ram filesystem) this can be passed to qemu-system-{arch} using `-kernel` then you can download the rootfs archive ( probably named rootfs.tar.gz) and convert it to an image file using a either `mkisofs` command or `dd` command and pass it to -hda
za flag
@SaleemKhair Sorry for the late response. yes, I thought I should use only the .iso file but with a simple test could see that I can install ubuntu with the kernel image and initrd file from inside the iso file. Thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.