From 75c043b65287c4dee1636d4ce584caffdaec19f0c83aa3f184be2e1766cfcfdb Mon Sep 17 00:00:00 2001 From: Kira Date: Wed, 24 Jun 2026 18:46:04 +0200 Subject: [PATCH] Add -k session to bcachefs unlock command. --- README.md | 20 +++++++++++++++++++- src/nyan_system.rs | 5 +++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d67814..c2c6823 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ # nyanit -Init program for initrd \ No newline at end of file +Kira-Linux init program for initrd + + +1. It looks for partitoin with GPT labelve **bee-root** what will shown in dev tree as **/dev/disk/by-partlabel/bee-root** +And this partition should be formated to bcachefs. + +2. Nyanit checks if bcachefs is encrypted, and asks for unlock password if it is. + +3. Then it mounts it to **/mnt/bee-root**. + +4. And looks for snapshots with name pattern **/mnt/bee-root/bzz_snaps/bzz-yyyy-mm-ddTHH-MM-SS** + +5. If no snapshots are found it calls **switch_root** for **/mnt/bee-root** + +6. Othervise vait for F2 for few seconds. +And if F2 pressed provides list of snapshoots to boot from. + +7. After some snapshoot or just **/mnt/bee-root** is selected, Nyanit doing **switch_root** to it. + diff --git a/src/nyan_system.rs b/src/nyan_system.rs index 519878a..f0e7524 100644 --- a/src/nyan_system.rs +++ b/src/nyan_system.rs @@ -145,9 +145,10 @@ pub fn bcachefs_unlock(pass: String, dev: &str) -> Result