commit 7fae90bac1dea71b51e825bed29dfb96893d22c1 parent 02b21c70dda53e0be3cbc87755e09bf2b3671f43 Author: Emmett1 <emmett1.2miligrams@gmail.com> Date: Thu, 11 Jun 2020 22:57:03 +0800 updated Diffstat:
| M | README.md | | | 18 | +++++++++++++++++- |
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -1,2 +1,18 @@ # mkinitrd -initrd generator +`mkinitrd` is a simple initrd generator for linux system. It was based on LFS initramfs script but heavily modified. It does support livecd iso, check [guide here](https://github.com/emmett1/mkinitrd/wiki/Make-livecd-ISO) how to do it. + +## Install +Install it is simply running: +``` +make install +``` +or use DESTDIR for custom location: +``` +make DESTDIR=/some/path install +``` +## Usage +To generate initrd is simply running as root: +``` +# mkinitrd [kernel version] +``` +Use `kernel version` if generating initrd for not currently running kernel. By default it automatically detect kernel using `uname -r`. The initrd output is `/boot/initrd-<kernel version>.img`.