diff --git a/src/bin/pbs2to3.rs b/src/bin/pbs2to3.rs index a052ae3a8..9a18d7b2f 100644 --- a/src/bin/pbs2to3.rs +++ b/src/bin/pbs2to3.rs @@ -203,7 +203,7 @@ impl Checker { return Ok(()); } - if !Path::new("/sys/firmware/efi").is_file() { + if !Path::new("/sys/firmware/efi").is_dir() { self.output .log_skip("System booted in legacy-mode - no need for systemd-boot")?; return Ok(());