# how to obtain a proper initrd using mkinitcpio -P     ?

**URL:** https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435
**Category:** Rolling 2018.01
**Created:** [May 21, 2018, 10:22pm UTC](https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435 "2018-05-21T22:22:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sp2004c](https://support.blue-systems.com/letter_avatar/sp2004c/32/5_5575768a8748004e209b776fc1b2916d.png) [@sp2004c](https://support.blue-systems.com/u/sp2004c)
#### Post date: [May 21, 2018, 10:22pm UTC](https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435/1 "2018-05-21T22:22:16Z")

</div>

[color=#66cc33]The following tutorial is not officially supported, and could potentially harm your system, proceed at your own risk.[/color]  
[hr]

I used std kernel: ❤

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

make xconfig  
make all  
make kernelrelease  
make kernelversion  
sudo depmod -a 4.17.0-rc6+  
make modules\_prepare  
make allmodconfig # tries to compile as many modules as possible - this usually breaks at some stage of compilation  
make modules --keep-going  
sudo depmod -a 4.17.0-rc6+  
make modules\_install  
sudo depmod -a 4.17.0-rc6+

but make modules breaks!  
without allmodconfig it wont work either.

after

sudo mkinitcpio -P

I get the dreaded

" ==\> WARNING: No modules were added to the image. This is probably not what you want."

the preset was essentially same as the working old one that ships with NRR

otherwise my customkernel and initrd are fine, only the modules for radeon are missing, so  
textmode bash is OK , but no X Windows 😊

---

<div class="post-metadata">

### Author: ![AJSlye](https://support.blue-systems.com/user_avatar/support.blue-systems.com/ajslye/32/263_2.png) [@AJSlye](https://support.blue-systems.com/u/AJSlye)
#### Post date: [May 22, 2018, 12:40am UTC](https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435/2 "2018-05-22T00:40:29Z")

</div>

Why are you building your own kernel?  
Building your own can be very dangerous.

Manjaro kernels are more heavily patched then the ARCH kernels.  
You will also break mhwd, there is no way around this when using a non-manjaro kernel.

---

<div class="post-metadata">

### Author: ![sp2004c](https://support.blue-systems.com/letter_avatar/sp2004c/32/5_5575768a8748004e209b776fc1b2916d.png) [@sp2004c](https://support.blue-systems.com/u/sp2004c)
#### Post date: [May 22, 2018, 9:38am UTC](https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435/3 "2018-05-22T09:38:21Z")

</div>

the std kernel works fine as a bash shell. just X is missing.there is also my post on how to mod the patched Manjaro kernel from github but even that one is not always working perfectly.

there are some neat features one can enable during make xconfig - that is why ! 😃

---

<div class="post-metadata">

### Author: ![sp2004c](https://support.blue-systems.com/letter_avatar/sp2004c/32/5_5575768a8748004e209b776fc1b2916d.png) [@sp2004c](https://support.blue-systems.com/u/sp2004c)
#### Post date: [May 22, 2018, 9:47am UTC](https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435/4 "2018-05-22T09:47:35Z")

</div>

and even without a std kernel - I was just asking for a working init RAM disk … 👼

---

<div class="post-metadata">

### Author: ![AJSlye](https://support.blue-systems.com/user_avatar/support.blue-systems.com/ajslye/32/263_2.png) [@AJSlye](https://support.blue-systems.com/u/AJSlye)
#### Post date: [May 22, 2018, 10:58am UTC](https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435/5 "2018-05-22T10:58:57Z")

</div>

I’m sorry, but building your own kernel is not supported, I can not help you on this one.

All I can do is point you to the Arch, and Manjaro wiki pages for guidance,  
[https://wiki.archlinux.org/](https://wiki.archlinux.org/)  
[https://wiki.manjaro.org/](https://wiki.manjaro.org/)

But even then, Manjaro is not arch and uses a different base system, has multiple kernel support, and a completely different graphics stack. Please keep this in mind, some modifications to the instructions may be required when following the arch wiki

If your going to continue posting these kinds of tutorials, be sure you add this disclaimer at the beginning of them:  
The following tutorial is not officially supported, and could potentially harm your system, proceed at your own risk.

---

<div class="post-metadata">

### Author: ![sp2004c](https://support.blue-systems.com/letter_avatar/sp2004c/32/5_5575768a8748004e209b776fc1b2916d.png) [@sp2004c](https://support.blue-systems.com/u/sp2004c)
#### Post date: [May 22, 2018, 4:26pm UTC](https://support.blue-systems.com/t/how-to-obtain-a-proper-initrd-using-mkinitcpio-p/4435/6 "2018-05-22T16:26:03Z")

</div>

well, it’s got to be doable … :dodgy:
