diff --git a/lib/src/kargs.rs b/lib/src/kargs.rs index dccd27a2..af4410e8 100644 --- a/lib/src/kargs.rs +++ b/lib/src/kargs.rs @@ -61,6 +61,9 @@ pub(crate) fn get_kargs_from_ostree_root( ) -> Result> { let kargsd = root.resolve_relative_path(KARGS_PATH); let kargsd = kargsd.downcast_ref::().expect("downcast"); + if !kargsd.query_exists(gio::Cancellable::NONE) { + return Ok(Default::default()); + } get_kargs_from_ostree(repo, kargsd, sys_arch) }