diff --git a/rust/tool/shared/src/esp.rs b/rust/tool/shared/src/esp.rs index 3087d4c..e81ef7b 100644 --- a/rust/tool/shared/src/esp.rs +++ b/rust/tool/shared/src/esp.rs @@ -16,7 +16,14 @@ pub enum Architecture { AArch64, } -impl System { +impl Architecture { + pub fn systemd_stub_filename(&self) -> &Path { + Path::new(match self { + Self::X86 => "linuxx64.efi.stub", + Self::AArch64 => "linuxaa64.efi.stub" + }) + } + pub fn systemd_filename(&self) -> &Path { Path::new(match self { Self::X86 => "systemd-bootx64.efi",