Anopther regexp fix for get_efi_part_info.

This commit is contained in:
kira committed 2026-10-24 18:03:27 +02:00
1 parent 18ff508fe5
commit e833f92502
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -498,7 +498,7 @@ pub fn check_if_run_as_root() -> bool {
///
fn get_efi_part_info() -> Result<(String, String), ExecCommandError> {
use regex_lite::Regex;
let re = Regex::new(r#"^PARTN="([0-9]+)" PKNAME="([a-zA-Z0-9]+)""#).unwrap();
let re = Regex::new(r#"^PARTN="([0-9]+)" PKNAME="([a-zA-Z0-9/]+)""#).unwrap();
let lsblk_query = format!("PARTLABEL==\"{}\"", EFI_PARTLABEL);
let lsblk_args: Vec<&str> = vec!["-P", "-p", "-Q", &lsblk_query, "-o", "PARTN,PKNAME"];