tool(esp): add systemd stub filenames mapping for systems

This commit is contained in:
Raito Bezarius 2023-04-25 17:26:12 +02:00 committed by nikstur
parent 7acb1b218a
commit 9af0e56527
1 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,14 @@ pub enum Architecture {
AArch64, 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 { pub fn systemd_filename(&self) -> &Path {
Path::new(match self { Path::new(match self {
Self::X86 => "systemd-bootx64.efi", Self::X86 => "systemd-bootx64.efi",