Custom initrd

Asked by Jim Klein

I would like to customize the initrd (which I am creating by extracting the initrd file in custom-disk/casper, editing, remaking in the same place with same name) however cubic keep overwriting my initrd with the original initrd when I create the iso at the last step. How can I make it stop doing that or where should I be making my edits? Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

Cubic doesn't make any changes inside the Terminal environment for you.

Are you talking about the vmlinuz and initrd files used to boot the live ISO?
(Remember, that's different than the initrd and vmlinuz files used to boot your custom OS-- the files located in /boot).

Revision history for this message
Cubic PPA (cubic-wizard) said :
#2

After you update initrd, please share the output of...

    root@cubic:~# ls -l /boot

Finish generating the custom ISO and exit Cubic.

Start Cubic again, and navigate to the Terminal page.

Please share the output of, once again...

    root@cubic:~# ls -l /boot

Revision history for this message
Cubic PPA (cubic-wizard) said :
#3

I see you mentioned you are attempting to modify the boot files in "custom-disk/casper".
These are the files used to bootstrap the ISO.

There is an easy way to do this in Cubic.

Please share the output of root@cubic:~# ls -l /boot (no need to run Cubic twice) so I can suggest what to do next.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Jim Klein (jklein) said :
#5

ls -l /boot is empty . The only initrd I can find to modify is the one in custom-disk/casper . There is one that appears in source-disk/casper that appears to be the mount point of the iso when cubic is running, so no way to modify it.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#6

You need to modify the initrd that you see in /boot in Cubic's terminal page.

Since you do not have this file in /boot, you should install it.

See comment #2 here: https://answers.launchpad.net/cubic/+question/688169

Make sure you have a matching vmlinuz and initrd file (i.e. the kernel version numbers must match).

On Cubic's Options page, click on the Kernels tab.

You will see your new kernel files listed. Select the kernel you want to use to bootstrap your ISO.
Your custom OS, when installed, will use the kernel version you have setup, which is usually the last kernel you have installed.

Can you help with this problem?

Provide an answer of your own, or ask Jim Klein for more information if necessary.

To post a message you must log in.