Arch Linux - rootfs in ram / boot to ram
Contents
Arch Linux - rootfs in ram / boot to ram
Arch comes with some simple scripts for booting root fs into ram. liveroot takes only some simple configuration
First, install the package
|
|
This puts the required hooks into /usr/lib/initcpio
An example mkinitcpio.conf is placed into /usr/share/liveroot I modified the MODULES line as follows
|
|
And to the HOOKS line I added encrypt and oroot - mine ends up looking like this
|
|
Finally, I added the oroot directive to the kernel options - mine are in refind.conf - I made this an additional option so I can boot normally for updates / adding software etc.
|
|
To make this work nicely, /home is still mounted onto the disk and you could try mounting /var the same way.
Author eanu
LastMod 2017-08-19