You are not logged in.

#1 2013-06-06 18:12:54

cris9288
Member
Registered: 2013-01-07
Posts: 348

[SOLVED]add a custom initramfs img to grub

I read through the Improving Boot Performance wiki, and as it suggested, I tried creating a more slimmed down initramfs image using mkinicpio. So now in my /boot folder I have two images - initramfs-linux.img and initramfs-linux-tiny.img. My question is how do I boot using the new image? I tried running grub-mkconfig, but it only sees the first one. Is there another step that I am missing? The blog linked to by the wiki mentions adding it to the bootloader, but doesn't offer any specific information. The wiki entry for mkinitcpio only mentions that you need to add the img to the bootloaders config file, but isn't specific either. Any help is appreciated!

Last edited by cris9288 (2013-06-06 19:03:02)

Offline

#2 2013-06-06 18:16:32

SolarBoyMatt
Member
Registered: 2012-01-07
Posts: 263

Re: [SOLVED]add a custom initramfs img to grub

Do you have os-prober installed?

Edit: I'm not quite familiar with using different initramfs images for the same kernel, so I'm not completely confident that would help. I misread and thought it was for two different kernels.

Last edited by SolarBoyMatt (2013-06-06 18:21:48)

Offline

#3 2013-06-06 18:17:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: [SOLVED]add a custom initramfs img to grub

See the wiki page for grub


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2013-06-06 18:24:35

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [SOLVED]add a custom initramfs img to grub

SolarBoyMatt, I installed os-prober, ran it, ran grub-mkconfig again but my custom img is still not being seen. I'm reading that now, Trilby.

Last edited by cris9288 (2013-06-06 18:24:57)

Offline

#5 2013-06-06 19:02:34

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [SOLVED]add a custom initramfs img to grub

So I just changed the image at the command line during boot, and I couldn't really tell a difference in boot times. I'll just mark this as solved.

Offline

Board footer

Powered by FluxBB