From 41708c870ebb9f4288f7e60e83828f515ec4c50d Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Tue, 29 Jan 2019 11:51:24 -0500 Subject: [PATCH] Added option to enable sealed realmfs images from kernel command line --- libcitadel/src/cmdline.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcitadel/src/cmdline.rs b/libcitadel/src/cmdline.rs index 594bd74..9cd8554 100644 --- a/libcitadel/src/cmdline.rs +++ b/libcitadel/src/cmdline.rs @@ -62,6 +62,9 @@ impl CommandLine { pub fn overlay() -> bool { CommandLine::var_exists("citadel.overlay") } + /// Return `true` if sealed realmfs images are enabled on kernel command line + pub fn sealed() -> bool { CommandLine::var_exists("citadel.sealed") } + pub fn channel() -> Option<&'static str> { CommandLine::get_value("citadel.channel") }