Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37734962
en ru br
ALT Linux repos
S:1.14.3-alt2

Group :: System/Configuration/Other
RPM: rex

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: rex-1.13.3-alt-fix_dmidecode.patch
Download


When running dmidecode as non-privileged user, it complains
on unsufficient privileges to STDERR. Redirect all output to
STDOUT.
--- ./lib/Rex/Inventory/DMIDecode.pm
+++ ./lib/Rex/Inventory/DMIDecode.pm
@@ -133,7 +133,7 @@ sub _read_dmidecode {
       return;
     }
 
-    eval { @lines = i_run "dmidecode"; };
+    eval { @lines = i_run "dmidecode", stderr_to_stdout => 1; };
 
     if ($@) {
       Rex::Logger::debug("Error running dmidecode");
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin