tool(esp): add systemd stub filenames mapping for systems
This commit is contained in:
parent
7acb1b218a
commit
9af0e56527
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue