From f64746e7f70ea620962efe8a3621966a0cea037f Mon Sep 17 00:00:00 2001 From: Rune Morling Date: Thu, 23 May 2024 11:45:53 +0200 Subject: [PATCH 1/2] README: Update testing instructions for clarity The idea is that it should be trivial to understand: - Which version of blsforme was tested - How the blsforme test output compares to how the system was booted - How to share the output with the Serpent OS developers Signed-off-by: Rune Morling --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0840671..487039e 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,17 @@ Primarily this tooling has been designed to assist the [moss](https://github.com ## Testing ```bash +# Get fresh +git pull +# Demonstrate fresh +git log -1 +# Build fresh cargo build +# Run fresh sudo RUST_LOG=trace ./target/debug/blsctl status +# Compare fresh to existing boot arguments +cat /proc/cmdline +# Paste the above to e.g. https://bpa.st and link to it in the 'General - Serpent OS' channel on matrix ``` ## Difference to alternatives From 0f9ce9591559605ea1bf1474a2bf729d9efd64e7 Mon Sep 17 00:00:00 2001 From: Rune Morling Date: Thu, 23 May 2024 12:08:38 +0200 Subject: [PATCH 2/2] README: Add `lsblk -f` output for comparison Signed-off-by: Rune Morling --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 487039e..2634d39 100644 --- a/README.md +++ b/README.md @@ -19,19 +19,21 @@ Primarily this tooling has been designed to assist the [moss](https://github.com ## Testing ```bash -# Get fresh -git pull -# Demonstrate fresh -git log -1 -# Build fresh +# Update your clone with git pull +# Build fresh release cargo build -# Run fresh +# Show commit of the build +git log -1 +# Run blsforme test sudo RUST_LOG=trace ./target/debug/blsctl status -# Compare fresh to existing boot arguments +# Compare to existing boot arguments cat /proc/cmdline -# Paste the above to e.g. https://bpa.st and link to it in the 'General - Serpent OS' channel on matrix +# Compare blsforme discovery to blkid discovery +sudo lsblk -f ``` +Paste a suitable excerpt of the above to e.g. https://bpa.st and link to it in the 'General - Serpent OS' channel on matrix + ## Difference to alternatives As the original author of [clr-boot-manager](https://github.com/intel/clr-boot-manager) it needs listing here as "prior art", in terms of synchronising `$BOOT` and `/usr/lib/kernel` for type 1 BLS entries.