Josue David Hernandez e5490d381f clr-init: change install path to lib/kernel
Signed-off-by: Josue David Hernandez <josue.d.hernandez.gutierrez@intel.com>
2018-03-05 10:26:31 -06:00
2018-02-28 16:57:18 -06:00
2018-01-19 17:48:16 -06:00
2018-01-19 17:48:16 -06:00
2018-01-19 17:48:16 -06:00

clr-init

small init wrote with C programming language that takes information from the cmdline in proc to mount root and execute /sbin/init from the root partition.

Luks Encryption support

for partitions encrypted with luks a password input will be displayed in boot time to decrypt root partition, add options to cmdline is not needed to know that root partition is encrypted.

How it works

Taken two paramters from cmdline root and rootfstype root partition is mounted and its systemd(/sbin/init) is running nothing different than other initrd.

Initrd just work when root option use the device name directly or PARTUUID for encryption initrd read the first part of the root partition looking for a luks header.

Compilation and Install

This will will install clr-init.img.gz in /usr/local/lib/initrd

meson builddir && ninja -C builddir install

install path could be changed using as sample:

meson --prefix /usr builddir

in this case the installation path will be /usr/lib/initrd

S
Description
No description provided
Readme 981 KiB
Languages
Makefile 100%