nanmi-initramfs

nanmi's initramfs
git clone git://xn--q9jzb1c.xn--q9jyb4c/nanmi-initramfs
Log | Files | Refs | README | LICENSE

commit 0a6f0ab52393f808a5ec96ab500330651b6cf72c
parent 61a538d7f418c14d375bb1428903510f5660635b
Author: nanmi <nanmi@member.fsf.org>
Date:   Tue, 21 Dec 2021 09:30:26 -0300

Add text() explanation on README.md, and simplify the init.

Diffstat:
MREADME.md | 3+++
Minit | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -17,6 +17,9 @@ Initramfs used on the late boot sequence (after the firmware loaded the bootload - sys-fs/cryptsetup (statically linked) ## Function structure explanation +### text() +Colorized informational text, OpenRC style. + ### installGentoo() ASCII art of Yotsuba, colored with ANSI escape code sequences (\033[32;01m) and centered on a 1920x1080 resolution display with 101 whitespaces (%101s). diff --git a/init b/init @@ -57,7 +57,7 @@ prepareStick() { prepareDisk() { text "Decrypting the disk..." - /sbin/cryptsetup luksOpen /dev/nvme0n1 install --header /mnt/usb/nvme/aheader --key-file /mnt/usb/nvme/akey --keyfile-offset 1337 --keyfile-size 8386942 + /sbin/cryptsetup luksOpen /dev/nvme0n1 install --header /mnt/usb/header --key-file /mnt/usb/key --keyfile-offset 1337 --keyfile-size 8386942 text "Checking integrity..." integritysetup open /dev/mapper/install gentoo --integrity hmac-sha256 --integrity-bitmap-mode --integrity-key-file /mnt/usb/nvme/key.bin --integrity-key-size 4096 text "Mounting disk..."