looking through /usr/lib/udev/rules.d there are at least some which
also have digits (eg. `IEEE1394_...`), so let's just match [^=]+ for
the variable name.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
use strict;
use warnings;
-my $UDEV_REGEX = '^E: ([A-Z_]*)=(.*)$';
+my $UDEV_REGEX = '^E: ([^=]*)=(.*)$';
sub query_udevadm_info {
my ($sys_path) = @_;
let re_iso9660 = Regex::new(r"(?m)^E: ID_FS_TYPE=iso9660")?;
let re_name = Regex::new(r"(?m)^N: (.*)$")?;
- let re_props = Regex::new(r"(?m)^E: (.*)=(.*)$")?;
+ let re_props = Regex::new(r"(?m)^E: ([^=]+)=(.*)$")?;
let mut disks: BTreeMap<String, BTreeMap<String, String>> = BTreeMap::new();