This project is no longer actively maintained since I have switched away from Linux to FreeBSD for my servers and personal computer. Please use another initramfs generator with OpenZFS support or fork the project.
Generates an initramfs image with all files needed to boot your Gentoo Linux system installed on Encrypted/OpenZFS. This program was designed as a simple alternative to genkernel for this use case.
All you need to do is run the application and pass it the kernel you want to build the initramfs for. That's it!
$ ./mkinitrd.py -k $(uname -r)
Released under the Simplified BSD License.
Please have the following installed:
- dev-lang/python 3.6+
- app-arch/cpio
- app-shells/bash
- sys-apps/kmod (
lzma
support required to read compressed kernel modules) - sys-apps/grep
- app-arch/gzip
- sys-fs/zfs
- sys-fs/zfs-kmod
- sys-fs/udev OR sys-fs/eudev OR sys-apps/systemd (UUIDs, Labels, etc)
- sys-apps/kbd (Keymap support)
For more information/instructions check the USAGE
file.
You can easily install Poetry on your machine and then run
poetry install
from the root of this repository to have
poetry automatically create a virtual environment and install
any Python based dependencies for the project (Including all
development dependencies like black
and beautysh
).
If making changes to any Python code, make sure to run black
on the code. The correct black
version should have been installed
after having ran poetry install
.
If making changes to any bash files (i.e files/init), please run
beautysh
on that file and re-test your changes. If it still works,
you can submit your PR.