SHA256
Anopther regexp fix for get_efi_part_info.
This commit is contained in:
1 parent
18ff508fe5
commit
e833f92502
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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"];
|
||||
|
||||
Reference in new issue
Block a user