bootctl: add --print-efi-architecture switch

This is extremely useful for our own test cases, since acquiring the
right EFI architecture string is otherwise a bit nasty.
This commit is contained in:
Lennart Poettering
2026-04-20 22:21:46 +02:00
committed by Lennart Poettering
parent c99e93ce0a
commit 2251f726b3
6 changed files with 32 additions and 2 deletions
@@ -101,7 +101,14 @@ basic_tests() {
testcase_bootctl_basic() {
assert_in "$(bootctl --print-esp-path)" "^(/boot/|/efi)$"
assert_in "$(bootctl --print-boot-path)" "^(/boot/|/efi)$"
bootctl --print-root-device
bootctl --print-root-device --print-root-device
bootctl --print-esp-path
bootctl --print-boot-path
bootctl --print-loader-path
bootctl --print-stub-path
bootctl --print-efi-architecture
basic_tests
}